columns | R Documentation |
return a vector of row or column indices
columns(x, default = c())
rows(x, default = c())
x |
an object that may or may not have any rows or columns |
default |
what to return if there are no rows or columns |
if x
has rows or columns, a vector of indices, else default
dim(iris)
columns(iris)
rows(iris)
columns(NULL)
columns("this doesn't have columns")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.