OrcsCppFun {Orcs}R Documentation

Dimensions of a data.frame

Description

Similar to base-R nrow(), ncol() and dim(), this set of functions let's you retrieve the number of rows and columns of a data.frame.

Usage

nrowC(x)

ncolC(x)

dimC(x)

Arguments

x

A data.frame.

Value

dimC() returns an integer vector of length 2 (number of rows and columns); nrowC() (or ncolC()) returns the number of rows (or columns) as a single integer.

Functions

Author(s)

Florian Detsch

Examples

dat <- data.frame(a = 1:4, b = 2:5, c = 3:6)

nrowC(dat)




[Package Orcs version 1.2.3 Index]