> tdf <- read.table(textConnection("ID samp1 samp2 samp3 samp4
+ G1 2332 12 87
+ G2 8545 49 76
+ G3 1246 39 28
+ G4 7326 18 13
+ "), header=T)
> library(reshape)
> recast(tdf, ...~ID)
Using ID as id
On Sat, 15 Aug 2009 09:20:04 +0200, Dieter Menne
wrote:
sandsky wrote:
I have a data set (csv); e.g.,
ID samp1 samp2 samp3 samp4
G1 2332 12 87
G2 8545 49 76
G3 1246 39 28
G4 7326 18 13
and
sandsky wrote:
>
> I have a data set (csv); e.g.,
>
> ID samp1 samp2 samp3 samp4
> G1 2332 12 87
> G2 8545 49 76
> G3 1246 39 28
> G4 7326 18 13
>
> and read it:
>
> data1<-(read.csv("Datafolder
I have a data set (csv); e.g.,
ID samp1 samp2 samp3 samp4
G1 2332 12 87
G2 8545 49 76
G3 1246 39 28
G4 7326 18 13
and read it:
data1<-(read.csv("Datafolder/rawdata.csv",header=T))
It is fine with
4 matches
Mail list logo