[R] error message in endseq

Uwe Ligges ligges at statistik.tu-dortmund.de
Mon Feb 15 14:57:11 CET 2010



On 15.02.2010 14:41, nomis24 wrote:
>
>
>
> Hallo Uwe,
>
> family_seq is the object I defined when I read my SPSS data:
>
> family_seq<- read.spss (file="C:\\Documents\\blabla\\fam_seq.sav", use.value.labels=TRUE)


What I meant with "What is family_seq?" ist that we do not have that 
object and hence cannot help without knowing what you are doing ...

PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html and provide commented, 
minimal, self-contained, reproducible code.

Uwe Ligges



> I have the impression (which does'nt help) that something doesn't go right
> with importing the data. As I said, all my variables (including the ones listed in the seqdef command) are listed when I use the names command.
>
> Thanks for any further ideas.
> nomis
>
>
>
> -------- Original-Nachricht --------
>>
>>
>> On 15.02.2010 02:29, nomis24 wrote:
>>>
>>> Hi there,
>>> I am new to R and feel so bloody stupid. Abut in spite of a search of
>>> several hrs I could not find an answer to my problem.
>>>
>>> I have imported SPSS data to R, and apart from some warnings regarding
>>> duplicate labels, everything looks fine and names lists all my
>> variables.
>>>
>>> Then I try to run a seqdef command - and get the error message below:
>>>
>>>> fam.seq<- seqdef(family_seq, var= c ("fseq2_15", "fseq2_16",
>>
>>
>> What is family_seq?
>>
>> Uwe Ligges
>>
>>
>>>> "fseq2_17","fseq2_18"," fseq2_19","fseq2_20","fseq2_21",
>>> + "fseq2_22", "fseq2_23","fseq2_24", "fseq2_25",
>>> "fseq2_26","fseq2_27","fseq2_28", "fseq2_29","fseq2_30", "fseq2_31",
>>> "fseq2_32","fseq2_33",
>>> + "fseq2_34", "fseq2_35","fseq2_36", "fseq2_37",
>>> "fseq2_38","fseq2_39","fseq2_40", "fseq2_41","fseq2_42", "fseq2_43",
>>> "fseq2_44","fseq2_45",
>>> + "fseq2_46", "fseq2_47","fseq2_48", "fseq2_49", "fseq2_50"),
>>> + alphabet =c("1","2","3","4","5","6","7","8"),labels=c("not left-never
>>> married-no children","not left -never married - at least 1 child","not
>> left
>>> -has married-no children" , "not left - has married -  at least 1
>>> child","left - never married- no children" , "left - never married - at
>>> least 1 child","left - has married - no children" , "left - has married
>> - at
>>> least 1 child"))
>>> Error in subset.default(data, , var) : element 1 is empty;
>>>      the part of the args list of 'is.logical' being evaluated was:
>>>      (subset)
>>>
>>>
>>> I understand that the problem seems to be with the list of variables I
>> use
>>> to define what my sequences are.
>>> I tried changing lots of things but nothing helped.
>>> Have I skipped an important step?
>>>
>>> Many thanks for your help (I have to sleep now).
>>>
>>> nomis
>>>
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>> ______________________________________
>> View message @
>> http://n4.nabble.com/error-message-in-endseq-tp1555607p1556082.html
>>
>> To unsubscribe from error message in endseq, click
>>   (link removed) =
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list