OrcsCppFun: Dimensions of a 'data.frame'

Description Usage Arguments Value Functions Author(s) See Also Examples

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

1
2
3
4
5
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

See Also

nrow, ncol, dim.

Examples

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

nrowC(dat)

Orcs documentation built on May 2, 2019, 2:37 a.m.