Given a matrix object:
Browse[2]> class(coldists)
[1] "matrix"
That has named rows and columns:
Browse[2]> coldists
pregnant glucose diastolic skin insulin bmi pedigree age
estimate Numeric,2 Numeric,2 Numeric,2 Numeric,2 Numeric,2 Numeric,2 Numeric,2 Numeric,2
method "mle" "mle" "mle" "mle" "mle" "mle" "mle" "mle"
sd Numeric,2 Numeric,2 Numeric,2 Numeric,2 Numeric,2 Numeric,2 Numeric,2 Numeric,2
cor Numeric,4 Numeric,4 Numeric,4 Numeric,4 Numeric,4 Numeric,4 Numeric,4 Numeric,4
vcov Numeric,4 Numeric,4 Numeric,4 Numeric,4 Numeric,4 Numeric,4 Numeric,4 Numeric,4
loglik -2022.201 -3750.272 -3364.823 -3216.296 -4734.98 -2675.054 -240.8774 -2982.152
[ reached getOption("max.print") -- omitted 11 rows ]
How can those columns/rows be accessed by name?
Browse[2]> coldists$estimate
NULL
There is a general question here: why is it difficult to find the attributes of a matrix/dataframe etc? From either RStudio editor or terminal the tab or spacebar do not come up with any suggestions after entering the colname variable name. There is likely a general approach to getting help/variable details here that I am missing. E.g. how can those rownames such as estimate, method, etc be accessed?