Closed CMPhelps closed 2 years ago
Hello,
I'm getting the error ‘variable lengths differ’ when using the a $ in the manyglm formula, when composition =T
Herbivores <- read.csv(file = "Herbivore_specialisation.csv", header = TRUE) Herb_spp <- mvabund(Herbivores[,5:11]) mod3 <- manyglm(Herb_spp ~ Herbivores$Habitat*Herbivores$DayNight, composition = T, family="negative_binomial")
Error in model.frame.default(formula = formLong, data = dat, subset = subset, : variable lengths differ (found for 'Herbivores$Habitat')
I am able to get the model to work using:
Can this be corrected? Thank you
this seems to have been addressed by v4.2.2
Hello,
I'm getting the error ‘variable lengths differ’ when using the a $ in the manyglm formula, when composition =T
Herbivores <- read.csv(file = "Herbivore_specialisation.csv", header = TRUE) Herb_spp <- mvabund(Herbivores[,5:11]) mod3 <- manyglm(Herb_spp ~ Herbivores$Habitat*Herbivores$DayNight, composition = T, family="negative_binomial")
Error in model.frame.default(formula = formLong, data = dat, subset = subset, : variable lengths differ (found for 'Herbivores$Habitat')
I am able to get the model to work using:
Can this be corrected? Thank you