Re: [R] Passing a character argument onto a function

2011-03-12 Thread William Dunlap
e- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Dennis Murphy > Sent: Saturday, March 12, 2011 1:48 AM > To: Tyler Rinker > Cc: r-help@r-project.org > Subject: Re: [R] Passing a character argument onto a function > > Hi: > &g

Re: [R] Passing a character argument onto a function

2011-03-12 Thread Dennis Murphy
Hi: One answer is eval(substitute(...)): [Note: it's a good idea NOT to use the same name on different objects - R is pretty good about distinguishing TEST the function from TEST the data frame, but you could be playing with fire if both objects have the same class but have different contents. Thi

[R] Passing a character argument onto a function

2011-03-11 Thread Tyler Rinker
I am a new R user and am beginning to employ function creation in my statistical work. I am running into a problem when I want to pass on a character (text) to the function as an argument. I have a simple example below to demonstrate this problem. I cannot seem to find a fix in my R book or