Technically this is correct for raw R functionality.

in practice various modules impose their own limits on variables so you have
to check.
For example the coxreg package truncates all variables to 16 characters.

for example the test below
> res
Call:
coxreg(formula = Surv(vtime, vstatus) ~
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz1_fx1 + 
    alt_const_fx1 + alt_const_fx2 + strata(vstrata), data = aggregate)

Covariate           Mean       Coef     Rel.Risk   S.E.    Wald p
abcdefghijklmnop   -0.000        NA        NA     0.000        NA 
alt_const_fx1      -0.045     0.132     1.141     0.044     0.002 
alt_const_fx2      -0.024     0.011     1.011     0.045     0.801 




--
View this message in context: 
http://r.789695.n4.nabble.com/max-length-of-a-factor-variable-tp2715509p4667332.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to