Re: [R] passing a vector of variable names to the ... pairlist function argument

2011-04-21 Thread Jessica Myers
Thanks - your last suggestion does seem to work with the ridge function, but the names of the objects get lost in the process. Is there a way to keep the object names with get? Thanks, Jessica Myers On Apr 21, 2011, at 11:00 AM, Uwe Ligges wrote: On 21.04.2011 16:03, Jessica Myers wrote

Re: [R] passing a vector of variable names to the ... pairlist function argument

2011-04-21 Thread Uwe Ligges
On 21.04.2011 17:14, Jessica Myers wrote: Thanks - your last suggestion does seem to work with the ridge function, but the names of the objects get lost in the process. Is there a way to keep the object names with get? Oh, come on, you can do that yourself: L <- lapply(xs, get) names(L) <-

Re: [R] passing a vector of variable names to the ... pairlist function argument

2011-04-21 Thread Uwe Ligges
On 21.04.2011 16:03, Jessica Myers wrote: Hi, I have a character vector that contains the names of several objects that I would like to pass to a function (specifically, the ridge function in the survival package, but cbind is a similar example). I've been struggling with how to do this so tha