While this is a bit embarrassing , it seems I had two problems, one
was that the recode command seems to need utf8 coding rather than the
Lyx default (which is fine), plus I had typing error in the data set,
which is not fine :-(.
I rewrote my code using the with command which allowed it to run, b
gt; On
>> Behalf Of Graham Smith
>> Sent: June-12-09 10:27 AM
>> To: r-help@r-project.org
>> Subject: [R] Sweave recode(car) and Lyx, compiling but not executing on
> Mac
>>
>> I am just beginning to use Sweave with Lyx on a Mac (R2.8.1). I have
>> 12 chun
Smith
>> Sent: June-12-09 10:27 AM
>> To: r-help@r-project.org
>> Subject: [R] Sweave recode(car) and Lyx, compiling but not executing on
> Mac
>>
>> I am just beginning to use Sweave with Lyx on a Mac (R2.8.1). I have
>> 12 chunks of Sweave code that work
; Sent: June-12-09 10:27 AM
> To: r-help@r-project.org
> Subject: [R] Sweave recode(car) and Lyx, compiling but not executing on
Mac
>
> I am just beginning to use Sweave with Lyx on a Mac (R2.8.1). I have
> 12 chunks of Sweave code that work fine, but this piece:
>
> <
I am just beginning to use Sweave with Lyx on a Mac (R2.8.1). I have
12 chunks of Sweave code that work fine, but this piece:
<<>>=
library(car)
cabbages$Year<-recode(cabbages$Year,"'X2001'='2001';'X2002'='2002';'X2003'='2003';'X2004'='2004';'X2005'='2005';'X2006'='2006';'X2007'='2007';'X2008'='20
5 matches
Mail list logo