On May 25, 2011, at 7:25 AM, Lutz Fischer wrote:
Thanks a lot for both replies.
If I setup the option as proposed everything works as I wanted it to.
I guess as.character would work as well. Only then I guess I would
need
to loop through the data frame.
as.character is vectorized. You
Thanks a lot for both replies.
If I setup the option as proposed everything works as I wanted it to.
I guess as.character would work as well. Only then I guess I would need
to loop through the data frame.
Lutz
On 24/05/11 22:42, Ista Zahn wrote:
> This is a FAQ:
>
> http://cran.r-project.org
This is a FAQ:
http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-do-I-convert-factors-to-numeric_003f
Please try there before posting a question to the list.
Best,
Ista
On Tue, May 24, 2011 at 5:33 PM, David Scott wrote:
> On 25/05/2011 9:20 a.m., Lutz Fischer wrote:
>>
>> Hi,
>>
>> I have a bit
On 24 May 2011, at 10:20 PM, Lutz Fischer wrote:
> n<-data.matrix(s);
> > s[1,2]
> [1] 30.94346629 # 3136 Levels: 0.026307482
> turned into:
> > n[1,2]
> [1] 3020
Dear Lutz, “3020” is the factor level associated with 30.94346629, in turn
generated by importing with strings in the column
Try pas
On 25/05/2011 9:20 a.m., Lutz Fischer wrote:
Hi,
I have a bit of a problem with as.numeric or as.double.
I read in an excel-file (either xlsx::read.xlsx2 or gdata::read.xls).
Select a subset and then try to make it numeric:
# read in the excel-file
alldata<-read.xlsx2("input.xls",1)
# select
Hi,
I have a bit of a problem with as.numeric or as.double.
I read in an excel-file (either xlsx::read.xlsx2 or gdata::read.xls).
Select a subset and then try to make it numeric:
# read in the excel-file
alldata<-read.xlsx2("input.xls",1)
# select the subset
s<-subset(alldata, select=c("cI","c
6 matches
Mail list logo