I would like to be able to extract the names of the variables in a formula that 
specifies random effects.  For example, given:
random = ~ 1+year | st_name
I'd like to be able to get "year" and "st_name" out of random.  Neither 
terms(random) nor random[2] seems to work.  Is there a way to get variable 
names out?

Thanks in advance!

Rebecca

______________________________________________
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