Displaying 2 results from an estimated 2 matches for "marginalcatsx".
Did you mean:
marginalcats
2025 Jan 24
2
Interpreting the output of str on a data frame created using aggregate function
...column names.
> (D) Does it mean that the dimensions of the matrix are stored as two separate lists?
No. The dim is an attribute which is shown implicitly as "[1:844,
1:7]", i.e. c(844, 7).
Duncan Murdoch
> (E) If so, how do I access the lists?
> When I enter
> dimnames(marginalcatsx$x)
> I receive:
>
> [[1]]
> NULL
>
> [[2]]
> [1] "Good" "Moderate" "Unhealthy For Some" "Unhealthy" "Very Unhealthy" "Hazardous1"
> [7] "Hazardous2"
>
> Thank...
2025 Jan 24
3
Interpreting the output of str on a data frame created using aggregate function
...ove correct?
(B) Does the .. ..$ : NULL mean that the matrix has no row names?
(C) What does "attr(*, "dimnames")=List of 2" mean?
(D) Does it mean that the dimensions of the matrix are stored as two separate lists?
(E) If so, how do I access the lists?
When I enter
dimnames(marginalcatsx$x)
I receive:
[[1]]
NULL
[[2]]
[1] "Good" "Moderate" "Unhealthy For Some" "Unhealthy" "Very Unhealthy" "Hazardous1"
[7] "Hazardous2"
Thank you,
John
John David Sorkin M.D., Ph.D....