Page 1 of 1

attempt to set index 12/12 in SET_STRING_ELT

Posted: Wed May 19, 2021 11:39 am
by ThomasRethink
I quite often receive this error message, when simply trying to load descriptives for a categorical variable. Sometimes it's "attempt to set index 12/12 in SET_STRING_ELT" sometimes "attempt to set index 16/16 in SET_STRING_ELT" and so on.

The error seems to affect particular variables within the dataset(s), even though there's nothing obviously different about these variables compared to any of the others.

If I turn developed mode on the full message is:
Debug

Error in private$.readDatasetHeader(self$options$varsRequired): attempt to set index 1/1 in SET_STRING_ELT

self$readDataset(TRUE)
private$.readDatasetHeader(self$options$varsRequired)
Thanks in advance for any help.

Re: attempt to set index 12/12 in SET_STRING_ELT

Posted: Sun May 30, 2021 11:05 am
by jonathon
hi,

could you share the data set?

with thanks

jonathon

Re: attempt to set index 12/12 in SET_STRING_ELT

Posted: Tue Jul 11, 2023 8:03 pm
by statsboone
I have found that changing the name of the variable can resolve this issue.