* David Winsemius <qjvafrzvhf at pbzpnfg.arg> [2011-07-05 13:21:57
-0400]:
On Jul 5, 2011, at 12:53 PM, Sam Steingold wrote:
I am confused by the way the indexing works.
Actually I suspect you may be confused by how factors work. See
below.
probably both :-(
being a lisper, I thought about factors as lisp symbols (and thus
thought that they would be accepted everywhere strings are).
Have you considered:
ysmd.table[ as.character( ysmd$X.stock[[100]]) ]
It appears that ysmd$X.stock[[100]] is a factor, and if so, you
probably
want the character value that its numeric representation points to.
as.character(ysmd$X.stock[[100]])
ysmd.table[as.character(ysmd$X.stock[[100]])]
<hash> containing 0 key-value pair(s).
NA : NULL
so, as.character is not the answer.