OrcsCppFun: Dimensions of a 'data.frame'

OrcsCppFunR 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

  • nrowC():

  • ncolC():

  • dimC():

Author(s)

Florian Detsch

Examples

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

nrowC(dat)




fdetsch/Orcs documentation built on Jan. 9, 2023, 6:14 a.m.