Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

columns

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

Common Utilities for Other MOSAIC-Family Packages

v0.9.0
GPL (>= 2)
Authors
Randall Pruim <rpruim@calvin.edu>, Daniel T. Kaplan <kaplan@macalester.edu>, Nicholas J. Horton <nhorton@amherst.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.