R-beta: Help accessing variable from a formula

Murray Keir mjk at maths.uq.edu.au
Sat Nov 1 04:07:47 CET 1997

	[this message automatically bounced to me as list-owner,
	 since it had "Help" in the subject ..  -- Martin M]

I have a program which is being feed a formula.  One of the terms in 
the formula is going to be r(variablename).  r just returns the 
original variable.

r <- function(x) x

The formula is something like 

rglm(y ~ x + r(Subject))

What I want to do is get access to the variable Subject directly.  Can 
anyone give me any suggestions for doing this?

Murray Keir

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list