[R] Problem using 'get'
Johnny Tkach
johnny.tkach at utoronto.ca
Wed Aug 18 18:53:07 CEST 2010
Hi all,
I have loaded a table called 'data' and used the split command to create a new table called 'datasplit' based on the variable 'a.ImageNumber' in 'data'. a.ImageNumber just specifies the image number that certain measurements are associated with (so there could be 330 measurements from image 1 and 297 measurements from image 2 etc).
I would now like to retrieve information using the get command but I am running into some problems.
If I want to retrieve the data for the measurement parameter I call "Area" from image 3, I can type:
> datasplit$"3"$Area
R then outputs the list of Area measurements for image 3.
However if I type:
> get("datasplit$\"3\"$Area")
or
>get('datasplit$"3"$Area')
R returns errors saying the object does not exist.
Any help is appreciated,
JT
Johnny Tkach, PhD
Donnelly CCBR, Rm. 1230
Department of Biochemistry
University of Toronto
More information about the R-help
mailing list