Re: [R] Extract one element from yahooKeystats data

2009-04-28 Thread J Toll
On Mon, Apr 27, 2009 at 5:42 PM, David Winsemius dwinsem...@comcast.net wrote: Using str(data) would have been more informative. data it turns out is a dataframe with a single column. which is a factor with rownames. Not the most typical of constructions, but the authors must have had their

[R] Extract one element from yahooKeystats data

2009-04-27 Thread J Toll
I am trying to extract one particular piece of data(Float) from all the data returned by yahooKeystats, but thus far I'm having no luck. This is what I've got so far: library(fImport) Loading required package: timeSeries Loading required package: timeDate data-yahooKeystats(IBM) trying URL

Re: [R] Extract one element from yahooKeystats data

2009-04-27 Thread David Winsemius
On Apr 27, 2009, at 3:43 PM, J Toll wrote: I am trying to extract one particular piece of data(Float) from all the data returned by yahooKeystats, but thus far I'm having no luck. This is what I've got so far: library(fImport) Loading required package: timeSeries Loading required package:

Re: [R] Extract one element from yahooKeystats data

2009-04-27 Thread David Winsemius
Using str(data) would have been more informative. data it turns out is a dataframe with a single column. which is a factor with rownames. Not the most typical of constructions, but the authors must have had their reasons data$Value[row.names(data)==Float] # [1] 1.30B # 52 Levels:

Re: [R] Extract one element from yahooKeystats data

2009-04-27 Thread David Winsemius
On Apr 27, 2009, at 8:16 PM, J Toll wrote: On Mon, Apr 27, 2009 at 5:42 PM, David Winsemius dwinsem...@comcast.net wrote: Using str(data) would have been more informative. data it turns out is a dataframe with a single column. which is a factor with rownames. Not the most typical of