get_nrows: get_nrows(): returns the number of rows of a dataframe or the...

Description Usage Arguments Value Examples

View source: R/cross_validation.R View source: R/train_test_split.R

Description

get_nrows(): returns the number of rows of a dataframe or the length of an atomic vector.

get_nrows(): returns the number of rows of a dataframe or the length of an atomic vector.

Usage

1
2
3

Arguments

data

a dataframe or an atomic vector,

data

a dataframe or an atomic vector,

Value

number of observations

number of observations

Examples

1
2
3
4
5
nrows = get_nrows(1:10)
nrows = get_nrows(mtcars)

nrows = get_nrows(1:10)
nrows = get_nrows(mtcars)

UBC-MDS/CrossR documentation built on May 25, 2019, 1:35 p.m.