columns: return a vector of row or column indices

View source: R/tally.R

columnsR Documentation

return a vector of row or column indices

Description

return a vector of row or column indices

Usage

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

dim(iris)
columns(iris)
rows(iris)
columns(NULL)
columns("this doesn't have columns")

mosaicCore documentation built on Sept. 22, 2022, 9:06 a.m.