[R] replacement has 13665 rows, data has 13664

Nicole Marie Ford nmford at uwm.edu
Tue Dec 20 06:22:17 CET 2011


Hello, all.

I have come across a problem.  Previously, when I recoded my DV, added the variable to my dataset and ran the multinom, I was just fine.  But I am doing it again and I am getting this error.

R> Poland$trust <- trust
Error in `$<-.data.frame`(`*tmp*`, "trust", value = c(NA, NA, NA, NA,  : 
  replacement has 13665 rows, data has 13664

Do I need to delete a row?  And if so, how would I do this?

Thanks so much.

~Nicole



More information about the R-help mailing list