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
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]
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
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
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,
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
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.
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 -
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
9 matches
Mail list logo