Re: [R] read.table with numeric row names

2012-07-13 Thread kexinz
Thanks all you guys' help! -- View this message in context: http://r.789695.n4.nabble.com/read-table-with-numeric-row-names-tp4636342p4636446.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://sta

Re: [R] read.table with numeric row names

2012-07-12 Thread kexinz
Thanks Yasir, this helps a lot. BTW, is there an R command to read just the first line of the file? Yasir Kaheil wrote > > just do this: > colnames(r)<-substr(colnames(r),2,nchar(colnames(r))) > > This will remove the X. > Later when you want to use the headed to plot something, cast it as > n

Re: [R] read.table with numeric row names

2012-07-12 Thread kexinz
Thanks, but I don't want to specify the column names by hand, since I have a lot of similar files. arun kirshna wrote > > Hi, > > Try this: > > dat1<-read.table(text=" >  2.5  3.6  7.1  7.9 >  100  3  4  2    3 >  200  3.1  4  3  3 >  300  2.2  3.3  2    4 >  ",sep="",header=TR

[R] read.table with numeric row names

2012-07-12 Thread kexinz
I have a text file like this 2.5 3.6 7.1 7.9 100 3 4 2 3 200 3.1 4 3 3 300 2.2 3.3 2 4 I used "r <- read.table("a.txt", header=T)" The row names becomes X2.5, X3.6... What I need is the row names are numeric, so I can use the row names as number

Re: [R] ploting dots with quentiles

2010-06-18 Thread kexinz
Thank you very much -- View this message in context: http://r.789695.n4.nabble.com/ploting-dots-with-quantiles-tp2260087p2260916.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/ma

[R] ploting dots with quentiles

2010-06-18 Thread kexinz
http://r.789695.n4.nabble.com/file/n2260087/%E6%8D%95%E8%8E%B7.png I am going to plot my data set like this, with means and 25% & 75% quentiles. I've tried "boxplot", but the output is not what I want. Should I use other functions? Thanks -- View this message in context: http://r.789695.n4.n

[R] how to generate uniformly distributed random integers

2007-12-07 Thread kexinz
I'm a beginner of R. I can use runif() to generate uniformly distributed numbers, but I don't know which function can generate uniformly distributed random integers, or what kind of method? Thanks! -- View this message in context: http://www.nabble.com/how-to-generate-uniformly-distrib