[R] Converting a string
Gang Chen
gangchen at mail.nih.gov
Mon Oct 29 22:49:34 CET 2007
Thanks for the help.
One case is like this: With function MyFunc(Argument1,
Argument2, ...) I have the first two arguments defined as one
variable "tempstr", a string of characters, like
tempstr <- "Argument1, Argument2"
The question is how I can feed tempstr into MyFunc to make it
executable?
Gang
On Oct 29, 2007, at 5:42 PM, jim holtman wrote:
> Can you provide an example of your input and what you expect the
> output to be. You can always use 'as.numeric'.
>
> On 10/29/07, Gang Chen <gangchen at mail.nih.gov> wrote:
>> This must be very simple, but I'm stuck. I have a command line in R
>> defined as a variable of a string of characters. How can I convert
>> the variable so that I can execute it in R?
>>
>> Really appreciate any help,
>> Gang
More information about the R-help
mailing list