I have the following structure: > str(propn) table [1:2(1d)] 0.674 0.326 - attr(*, "dimnames")=List of 1 ..$ label: chr [1:2] "o" "x"
> print(propn) label o x 0.6738347 0.3261653 How can I access the value of "o" and "x" I tried this but fail > print(propn$label[,"o"]; - G.V. ______________________________________________ R-help@r-project.org 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.