OrcsCppFun {Orcs} | R Documentation |
data.frame
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
.
nrowC(x)
ncolC(x)
dimC(x)
x |
A |
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
.
nrowC()
:
ncolC()
:
dimC()
:
Florian Detsch
dat <- data.frame(a = 1:4, b = 2:5, c = 3:6)
nrowC(dat)