How can I export the results of my dredge function model given the errors I am getting?

126 views Asked by At

I used lme4 to generate general linear negative binomial models, and dredge to run all combinations of the variables that I had determined were important. However, when I attempted to export the result via write.csv, I got the following error message:

Error in `[<-.data.frame`(`*tmp*`, needconv, value = list(`(Intercept)` = c("1.53538995343218",  : 
  replacement element 1 has 5 rows, need 64

When I tried with write_csv, I got a different error message:

Error in !is.null(modif) && modif %in% type2colname(column.types, protectedcoltypes) : 
  'length = 12' in coercion to 'logical(1)'

I am able to view the data frame in the RStudio viewer, and it appears normal there. From what I looked up, neither error appears to be specifically associated with csv writing functions. How can I export my results?

0

There are 0 answers