Re: [R] variable definition

From: Wolski <wolski_at_molgen.mpg.de>
Date: Mon 12 Jul 2004 - 02:05:29 EST

Hallo!
?assign

z<-"now"
assign(paste("go", z, sep = ".") ,10)

Sincerely
Eryk

On 7/11/2004 at 10:02 PM Andrew R. Criswell wrote:

>>>Hello All:
>>>
>>>This function obviously fails
>>>
>>> x <- function(z) <- 10
>>> x("now")
>>>
>>>But is there a way to define the name of a variable through passing a
>>>parameter in a function call?
>>>
>>>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

Dipl. bio-chem. Eryk Witold Wolski @ MPI-Moleculare Genetic

Ihnestrasse 63-73 14195 Berlin       'v'    
tel: 0049-30-83875219               /   \    
mail: wolski_at_molgen.mpg.de        ---W-W----    http://www.molgen.mpg.de/~wolski

______________________________________________
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:19:01 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:35:33 EST