I have a variable that looks like this:
> print(pred$posterior)
o x
1 2.356964e-03 9.976430e-01
2 8.988153e-01 1.011847e-01
3 9.466137e-01 5.338627e-02
4 2.731429e-11 1.000000e+00
Now what I want to do is to access "o" and "x"
How come this approach fail?
> print(pred$posterior$o)
or
> print(pred$posterior[["o"]])
What's the right way to do it?
- G.V.
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.