[R] error message in endseq

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



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
>



More information about the R-help mailing list