Displaying 2 results from an estimated 2 matches for "mycompon".
Did you mean:
mycompany
2001 Oct 18
2
Parsing for list components
How do I parse an identifier of a list component, e.g.
mylist$mycomponent
or
mylist[[1]] ?
Parse does not do the job, e.g.
parse(text="mylist$mycomponent")
returns an expression with just one term, instead of "mylist", "$",
"mycomponent".
What I need is a way to extract the list name (e.g. "mylist"), given
an iden...
2007 Nov 07
1
Shortcut to refer to an attached dataframe?
...(my.data.frame)
summary(my.data.frame)
That's fine but often the frame has a very long name so I'd prefer some
shorthand way of referring to it by its position on the search list.
This applies especially to cases where I have a nested data frame so I
might do
attach(my.data.frame$mycomponent)
summary(my.data.frame$mycomponent)
I have a recollection that there was a way of doing this with S-Plus
but I haven't been able to figure out how to do it in R (I have looked
at attach, get, sys.frame, etc. to no avail).
Is there a built-in way of doing this? Thanks.
Jeff...