Re: [R] variable definition

From: Achim Zeileis <Achim.Zeileis_at_wu-wien.ac.at>
Date: Mon 12 Jul 2004 - 02:11:00 EST

On Sun, 11 Jul 2004, Andrew R. Criswell wrote:

> Hello All:
>
> This function obviously fails
>
> x <- function(z) paste("go", z, sep = ".") <- 10
> x("now")
>
> But is there a way to define the name of a variable through passing a
> parameter in a function call?

I'm not exactly sure what you want to do, but looking at   ?assign
might be of some help.
Z

> Thanks,
> ANDREW
>
> ______________________________________________
> 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
>



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 Mon Jul 12 02:25:45 2004

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