Skip to content
Prev 37997 / 63424 Next

model.frame deficiency

At least for me, the problem is not to do with the length of 
formula.  You have a term in the formula with a very long name, and 
there are several places that can go wrong.  For example, for the N=20 
version I get
Error in do.call("data.frame", rval) :
   variable names are limited to 256 bytes

For the N=50 case the sticking point is

     varnames <- sapply(vars, deparse, width.cutoff = 500)[-1L]

which could be rewritten as

     varnames <- sapply(vars, function(x) paste(deparse(x,width.cutoff=500), collapse=' '))[-1L]

but you would still not be able to print the result.
On Thu, 7 Oct 2010, Terry Therneau wrote: