On Thu, Mar 15, 2012 at 12:58 PM, Rui Barradas wrote:
> Hello,
>
>>
>> Hi Emily,
>>
>> Yes (see below), but you might be better off by writing a simple
>> function. Here are examples both ways (usually eval parse is highly
>> discouraged).
>>
>> Cheers,
>>
>> Josh
>>
>
> Yes, eval/parse is discou
Hello,
>
> Hi Emily,
>
> Yes (see below), but you might be better off by writing a simple
> function. Here are examples both ways (usually eval parse is highly
> discouraged).
>
> Cheers,
>
> Josh
>
Yes, eval/parse is discouraged but there's a way of using it,
that is less troublesome, to c
Hi Emily,
Yes (see below), but you might be better off by writing a simple
function. Here are examples both ways (usually eval parse is highly
discouraged).
Cheers,
Josh
#
eqn1string <- "x^2 + x + 5"
x <- 6
## works
eval(parse(text = eqn1string))
## better
f <- functio
3 matches
Mail list logo