Re: [R] Convert factor to "double"?

2009-04-04 Thread p . silva
> > > Anyway, I would like to Fourier-transform one column. So I say: > >> fft(test1$vP) > > Error in levels(x)[x] : invalid subscript type 'complex' > >> test1$vP[1:10] > > [1] 110 108 116 118 114 120 117 111 95 118 > > 166 Levels: - 0 1 10 100 101 102 103 104 105 106 107 108 109 11 110 111 >

[R] Convert factor to "double"?

2009-04-03 Thread p . silva
Hi! I'm reading a tab-seperated CVS file with: test1 <- read.table("data.txt", header=TRUE) It's in the following format: Date_Time qK qL vL vP ... 0 30 22 110 88 ... ... (BTW: It seems to me R shifts the column descriptions by one.) Anyway, I would like to Fourier-transform one colum