R-beta: Help accessing variable from a formula

Murray Keir (mjk@maths.uq.edu.au)
Sat, 1 Nov 1997 13:07:47 +1000 (EST)


Date: Sat, 1 Nov 1997 13:07:47 +1000 (EST)
From: Murray Keir <mjk@maths.uq.edu.au>
To: R-help@stat.math.ethz.ch
Subject: R-beta: Help accessing variable from a formula
In-Reply-To: <m0xQF50-000hruC@franz.stat.wisc.edu>

	[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?

Thanks
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@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=