Skip to content

Error: invalid 'labels'; length 5 should be 1 or 4

2 messages · Branko, Sarah Goslee

#
I have read already the other post 'invalid 'labels'; length 2 should be...'
but I don't understand the answer.

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?

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.
#
Hi,
On Sat, Jul 18, 2015 at 9:44 AM, Branko <branko.vermote at ugent.be> wrote:
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).
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