Skip to content

Instantly share code, notes, and snippets.

@NyaGarcia
Created March 18, 2020 19:57
Show Gist options
  • Save NyaGarcia/29d77cead44533a969361174f6817308 to your computer and use it in GitHub Desktop.
Save NyaGarcia/29d77cead44533a969361174f6817308 to your computer and use it in GitHub Desktop.
Calling str() on a table object
> myCars<-table(mtcars$gear, mtcars$cyl)
> str(myCars)
'table' int [1:3, 1:3] 1 8 2 2 4 1 12 0 2
- attr(*, "dimnames")=List of 2
..$ : chr [1:3] "3" "4" "5"
..$ : chr [1:3] "4" "6" "8"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment