Skip to contents

Get the number of rows in a data frame. A fast, unsafe alternative to base::nrow().

Usage

fnrow(x)

Arguments

x

(data.frame)
The data frame to get the number of rows.

Value

Scalar integer

See also

Examples

#----------------------------------------------------------------------------
# fnrow() examples
#----------------------------------------------------------------------------
library(bkbase)

x <- data.frame(a = 1)
fnrow(x)
#> [1] 1