[R] Addressing Columns in a Data Frame
michael.weylandt at gmail.com
Sat Feb 9 14:57:02 CET 2013
On Feb 9, 2013, at 1:40 PM, Lorenzo Isella <lorenzo.isella at gmail.com> wrote:
> Dear All,
> Probably a one liner, but I am banging my head against the floor.
> Consider the following
> DF <- data.frame(
> but then I cannot retrieve a column by doing e.g,
$ doesn't evaluate it's arguments so I think you want something like: DF[[mn]] or DF[,mn]
> I tried to play with the quotes and so on, but so far with no avail.
> Any suggestion is welcome.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help