You can achieve this by cbind.data.frame() Christophe Pallier wrote: > Beware: you are not working with data.frames but with a vector and a > matrice. > (see ?cbind) > > Solution: convert 'res' to data.frame. > > Christophe > > On 7/14/07, Zhang Jian <[EMAIL PROTECTED]> wrote: >> If I do not add "ress" into the data frame "res", there is no quote in the >> data frame. However, I add "ress", all column were found the quote. >> How to remove it? >> If you can delete the quote in the file "ress", that is better. >> Thanks. >> >>> ress[1:10] >> [1] "ABHO.ABNE" "ABHO.ACBA" "ABHO.ACGI" "ABHO.ACKO" "ABHO.ACMA" "ABHO.ACMO >> " >> [7] "ABHO.ACPS" "ABHO.ACSE" "ABHO.ACTE" "ABHO.ACTR" >>> res=cbind(obv.value,p.value,mean.sim) >>> res[1:10,] >> obv.value p.value mean.sim >> [1,] 2 1.0 6.0 >> [2,] 0 1.0 0.0 >> [3,] 66 0.5 49.6 >> [4,] 3 1.0 3.0 >> [5,] 0 1.0 64.7 >> [6,] 0 1.0 0.0 >> [7,] 0 1.0 0.0 >> [8,] 51 0.5 39.8 >> [9,] 0 1.0 47.4 >> [10,] 59 0.7 72.0 >> >>> ress=cbind(res,ress) >>> ress[1:10,] >> obv.value p.value mean.sim ress >> [1,] "2" "1" "6" "ABHO.ABNE" >> [2,] "0" "1" "0" "ABHO.ACBA" >> [3,] "66" "0.5" "49.6" "ABHO.ACGI" >> [4,] "3" "1" "3" "ABHO.ACKO" >> [5,] "0" "1" "64.7" "ABHO.ACMA" >> [6,] "0" "1" "0" "ABHO.ACMO" >> [7,] "0" "1" "0" "ABHO.ACPS" >> [8,] "51" "0.5" "39.8" "ABHO.ACSE" >> [9,] "0" "1" "47.4" "ABHO.ACTE" >> [10,] "59" "0.7" "72" "ABHO.ACTR" >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help@stat.math.ethz.ch mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> > > >
______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.