columns: return a vector of row or column indices

Description Usage Arguments Value Examples

View source: R/tally.R

Description

return a vector of row or column indices

Usage

1
2
3
columns(x, default = c())

rows(x, default = c())

Arguments

x

an object that may or may not have any rows or columns

default

what to return if there are no rows or columns

Value

if x has rows or columns, a vector of indices, else default

Examples

1
2
3
4
5
dim(iris)
columns(iris)
rows(iris)
columns(NULL)
columns("this doesn't have columns")

ProjectMOSAIC/mosaicCore documentation built on Sept. 22, 2018, 5:27 p.m.