Re: [R] A Question about read.table and Data Frames in R

2014-06-30 Thread David L Carlson
Subject: Re: [R] A Question about read.table and Data Frames in R On Jun 29, 2014, at 3:22 PM, Robert Sherry wrote: I created the following file: symbol,shares XOM,1000 APA,400 CVX,200 I then read the file in R using the command: stockList=read.table(/NotesOnR/stockList, header = T

[R] A Question about read.table and Data Frames in R

2014-06-29 Thread Robert Sherry
I created the following file: symbol,shares XOM,1000 APA,400 CVX,200 I then read the file in R using the command: stockList=read.table(/NotesOnR/stockList, header = T, sep=,) I would then expect the following expression to evaluate to the simple string APA: stockList$symbol[2]

Re: [R] A Question about read.table and Data Frames in R

2014-06-29 Thread David Winsemius
On Jun 29, 2014, at 3:22 PM, Robert Sherry wrote: I created the following file: symbol,shares XOM,1000 APA,400 CVX,200 I then read the file in R using the command: stockList=read.table(/NotesOnR/stockList, header = T, sep=,) I would then expect the following expression to evaluate

Re: [R] a question about 'read.table' with or without 'read.table'.(urgent)

2010-08-05 Thread karena
Great! Thank you -- View this message in context: http://r.789695.n4.nabble.com/a-question-about-read-table-with-or-without-read-table-urgent-tp2314423p2314450.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

[R] a question about 'read.table' with or without 'read.table'.(urgent)

2010-08-05 Thread karena
Hi, I've got a quite tricky question. I have a txt file, named 'temp.txt', as the following: snp1snp2snp3 AA 00 00 GG GG 00 00 AA 00 I want to read the file into R. 1) when I use 'read.table' without 'header=T' option,

Re: [R] a question about 'read.table' with or without 'read.table'.(urgent)

2010-08-05 Thread John Kane
be confusing to discover that you have factor rather than character data in the data.frame. :) --- On Thu, 8/5/10, karena dr.jz...@gmail.com wrote: From: karena dr.jz...@gmail.com Subject: [R] a question about 'read.table' with or without 'read.table'.(urgent) To: r-help@r-project.org Received

Re: [R] a question about 'read.table' with or without 'read.table'.(urgent)

2010-08-04 Thread Wu Gong
read.table(temp.txt,header=T,colClasses = character) - A R learner. -- View this message in context: http://r.789695.n4.nabble.com/a-question-about-read-table-with-or-without-read-table-urgent-tp2314423p2314445.html Sent from the R help mailing list archive at Nabble.com.

[R] A question about *read.table()*

2008-05-30 Thread ss
Hi list, I have a question about using *read.table()* to read in a txt file. Basically, it consists of 16346 rows, 6 columns (no header). The code I used is: exprSet - read.table('process_all4_GSA2.txt', row.names = 1,header =FALSE) and I got an error message: exprSet -

Re: [R] A question about *read.table()*

2008-05-30 Thread Charilaos Skiadas
On May 30, 2008, at 7:56 PM, ss wrote: and I got an error message: exprSet - read.table('process_all4_GSA2.txt', row.names = 1,header =FALSE) Error in read.table(process_all4_GSA2.txt, row.names = 1, header = FALSE) : duplicate 'row.names' are not allowed I would say that's pretty