Displaying 1 result from an estimated 1 matches for "fooform".
Did you mean:
conform
2011 Jan 23
2
Passing in arguments into function
Hi,
I had a function that looked like:
diff <- lm(x ~ y + z)
How can I pass the argument to the 'lm' function on the fly? E.g., if I pass it
in as a string (e.g. "x ~ y + z"), then the lm function treats it as a string
and not a proper argument.
many thanks
[[alternative HTML version deleted]]