[R] lapply to list of variables
ligges at statistik.tu-dortmund.de
Tue Nov 8 18:24:09 CET 2011
On 08.11.2011 17:59, Ana wrote:
> Can someone help me with this?
> How can I apply a function to a list of variables.
> something like this
This is a list of length one character vectors rather than a "list of
To make it work, redefine:
x <- get(x)
is.na(x[x<=10]) <- TRUE
> lapply(listvar, func)
This is not R syntax.
> in my case I have a neverending list of vectors.
Then your function will take an infinite amount of time - or you will
get amazing reputation in computer sciences.
> 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