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

2014-06-30 Thread David L Carlson
M To: Robert Sherry Cc: r-help@r-project.org 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 us

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 evaluat

[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[