Hi,
On Sat, Jul 18, 2015 at 9:44 AM, Branko <branko.vermote at ugent.be>
wrote:> I have read already the other post 'invalid 'labels'; length 2
should be...'
> but I don't understand the answer.
This is the R-help email list; I don't know what other post you mean
without a link to the mailing list archive (the real one at
http://tolstoy.newcastle.edu.au/R/ or another link from the official
page, not Nabble).
>
> I work with the poLCA package and I get this error: Error in factor(ret$y[,
> j], labels = lev) :
> invalid 'labels'; length 5 should be 1 or 4
>
> What does this mean and what can I do about it?
Well, you can provide a reproducible example, and the information
requested in the posting guide.
Without a reproducible example that includes some sample data (fake is
fine), the code you used, and some clear idea of what output you
expect, it's impossible to figure out how to help you. Here are some
suggestions for creating a good reproducible example:
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
The R-help posting guide may also be useful:
http://www.r-project.org/posting-guide.html
Sarah
> Kind regards
> Branko
>
>
>
> --
> View this message in context:
http://r.789695.n4.nabble.com/Error-invalid-labels-length-5-should-be-1-or-4-tp4710026.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
--
Sarah Goslee
http://www.functionaldiversity.org