Henrique Dallazuanna wrote:
> Try: sapply(paste("Data$x", 1:3, sep=""),
> function(x)eval(parse(text=x)))
>
> On 07/01/2008, Gregory Gentlemen <[EMAIL PROTECTED]> wrote:
>> Dear R users,
>>
>> I'd like to evaluate a vector of characters. For example, say I
>> have a data frame called Data includi
Center
Intermountain Healthcare
[EMAIL PROTECTED]
(801) 408-8111
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Henrique
> Dallazuanna
> Sent: Monday, January 07, 2008 10:56 AM
> To: Gregory Gentlemen
> Cc: [EMAIL
Try:
sapply(paste("Data$x", 1:3, sep=""), function(x)eval(parse(text=x)))
On 07/01/2008, Gregory Gentlemen <[EMAIL PROTECTED]> wrote:
> Dear R users,
>
> I'd like to evaluate a vector of characters. For example, say I have a data
> frame called Data including the field names x1, x2, x3, and I'd l
Dear R users,
I'd like to evaluate a vector of characters. For example, say I have a data
frame called Data including the field names x1, x2, x3, and I'd like to a list
out of paste("Data$x", 1:3, sep=""). How can I get list to evaluate
paste("Data$x", 1:3, sep="") as an R object rather than a
4 matches
Mail list logo