get_ncols: get_ncols(): returns the number of columns of data.

Description Usage Arguments Value Examples

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

Description

get_ncols(): returns the number of columns of data.

get_ncols(): returns the number of columns of data.

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
ncols = get_ncols(1:10)
ncols = get_ncols(mtcars)

ncols = get_ncols(1:10)
ncols = get_ncols(mtcars)

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