Re: [R] read.table() question

2016-10-19 Thread Rich Shepard
On Wed, 19 Oct 2016, Duncan Murdoch wrote: I don't get that from those 9 observations, so there's likely something else going on further down in the file. Duncan, Sigh. I thought I had removed all 'T's (for trace amounts) from the file, but I hadn't. Yes, this explains it. Many thanks,

Re: [R] read.table() question

2016-10-19 Thread Marc Schwartz
> On Oct 19, 2016, at 4:12 PM, David Winsemius wrote: > > >> On Oct 19, 2016, at 1:54 PM, Rich Shepard wrote: >> >> The file, daily_records.dat, contains these data: >> >> "station","date","amount" >> "0.3E",2014-01-01, >> "0.3E",2014-01-02,

Re: [R] read.table() question

2016-10-19 Thread Duncan Murdoch
On 19/10/2016 4:54 PM, Rich Shepard wrote: The file, daily_records.dat, contains these data: "station","date","amount" "0.3E",2014-01-01, "0.3E",2014-01-02, "0.3E",2014-01-03,0.01 "0.3E",2014-01-04,0.00 "0.3E",2014-01-05,0.00 "0.3E",2014-01-06,0.00 "0.3E",2014-01-07,0.10

[R] read.table() question

2016-10-19 Thread Rich Shepard
The file, daily_records.dat, contains these data: "station","date","amount" "0.3E",2014-01-01, "0.3E",2014-01-02, "0.3E",2014-01-03,0.01 "0.3E",2014-01-04,0.00 "0.3E",2014-01-05,0.00 "0.3E",2014-01-06,0.00 "0.3E",2014-01-07,0.10 "0.3E",2014-01-08,0.22 "0.3E",2014-01-09,0.49 Using

Re: [R] read.table question

2011-12-09 Thread Pavan G
Thanks All! On Thu, Dec 8, 2011 at 7:41 PM, Robert Baer rb...@atsu.edu wrote: Hello All, This works, results - read.table(plink.txt,T) while this doesn't. results - read.table(plink.txt) The T is the value for the second parameter which you show from the help file

[R] read.table question

2011-12-08 Thread Pavan G
Hello All, This works, results - read.table(plink.txt,T) while this doesn't. results - read.table(plink.txt) Make sure your data frame contains columns CHR, BP, and P What does adding the T in read.table do? Which argument does this correspond to? I tried searching for it but didn't find the

Re: [R] read.table question

2011-12-08 Thread Duncan Murdoch
On 08/12/2011 3:28 PM, Pavan G wrote: Hello All, This works, results- read.table(plink.txt,T) while this doesn't. results- read.table(plink.txt) Make sure your data frame contains columns CHR, BP, and P What does adding the T in read.table do? Which argument does this correspond to? I tried

Re: [R] read.table question

2011-12-08 Thread Robert Baer
Hello All, This works, results - read.table(plink.txt,T) while this doesn't. results - read.table(plink.txt) The T is the value for the second parameter which you show from the help file printout you looked at to be header. Thus, you are writing in short cut: results -

[R] read.table question #only need to change column names

2011-04-01 Thread hongsheng wu
Hi all, I have a huge data set. All I want to do is to change the column names of the it. So if I use read.table, I can read the data in and change colnames and then write back, such as, t - read.table(a.txt, header = T, sep = \t) colnames(t) colnames(t) - c() # new column names

Re: [R] read.table question #only need to change column names

2011-04-01 Thread David Winsemius
On Apr 1, 2011, at 10:00 AM, hongsheng wu wrote: Hi all, I have a huge data set. All I want to do is to change the column names of the it. So if I use read.table, I can read the data in and change colnames and then write back, such as, t - read.table(a.txt, header = T, sep = \t)

Re: [R] read.table question

2008-08-09 Thread Dan Davison
On Fri, Aug 08, 2008 at 07:27:13PM -0700, Alessandro wrote: Hi All. I have a file txt with 3 columns (X, Y and Z). every rows has 4 decimal place (i.e. x.). I use read.table to import the data in R, but with summary(), I don't see the decimal place after the dot. Is there any way

[R] read.table question

2008-08-08 Thread Alessandro
Hi All. I have a file txt with 3 columns (X, Y and Z). every rows has 4 decimal place (i.e. x.). I use read.table to import the data in R, but with summary(), I don't see the decimal place after the dot. Is there any way for me to preserve the information? testground - read.table

[R] read.table question

2008-07-27 Thread Edna Bell
Dear R list: I have a data set that I would like to bring it. The fourth column shows as numeric, but I want it to be a factor. Is there a way to do this from the read.table statement, or should I just wait and use the factor function please? thanks, Edna Bell

Re: [R] read.table question

2008-07-27 Thread Rolf Turner
On 28/07/2008, at 3:26 PM, Edna Bell wrote: Dear R list: I have a data set that I would like to bring it. The fourth column shows as numeric, but I want it to be a factor. Is there a way to do this from the read.table statement, or should I just wait and use the factor function please?