On 14-01-25 6:05 PM, Axel Urbiz wrote:
Thanks again all. Essentially, this is the section of the code that is
causing trouble. This is part of the (exported) function which calls
contr.none (not exported). As mentioned, when I call the exported function
it complains with the error described before.


   oldcontrasts <- unlist(options("contrasts"))
     if (cts)
         options(contrasts = c(unordered = "contr.none", ordered =
"contr.diff"))
     x <- model.matrix(terms(reformulate(var_names)), mf, contrasts)
     options(contrasts = oldcontrasts)

This is hugely incomplete. Please stop wasting everyone's time, and post something reproducible.

Duncan Murdoch

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to