Skip to content
Prev 178567 / 398503 Next

Extract one element from yahooKeystats data

On Apr 27, 2009, at 8:16 PM, J Toll wrote:

            
And this construction using indexing might be more natural:

 > data["Float", ]
[1] 1.30B
52 Levels: -1.00% -11.40% -18.69% -38.03% 0.04% 0.78 06-Feb-09 09- 
Mar-09 ... NA
 > as.character( data["Float", ] )
[1] "1.30B"

(I never have understood the attraction of factors. But there are a  
great many things I do not understand.)

David Winsemius, MD
Heritage Laboratories
West Hartford, CT