Re: [R] How to pass strings to functions? [once once more, now With content I hope...]

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Fri 09 Jul 2004 - 13:30:38 EST

On Thu, 8 Jul 2004, Gijs Plomp wrote:

> Dear expeRts,
>
> I fail to succesfully pass strings to functions. It comes down to the
> observation that
>
> > plot(someVariable,anotherVariable)
>
> works fine, but
>
> > x <- "someVariable"
> > y <- "anotherVariable"
> > plot(x,y)
>
> does not.
>
> Does this have something to do with the returned value of x being
> /"someVariable"/ and not /someVariable/, i.e. without the quotation
> marks? Is there any way to work around this?
>

This is in the FAQ.

        -thomas



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jul 09 13:38:47 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:47 EST