size: Size of 'binclass' Objects

Description Usage Arguments Value Examples

Description

Generic function to determine the size (i.e., length, number of rows or columns) of various binclass objects.

Usage

1
size(x, ...)

Arguments

x

An R object. Currently there are methods for train_tst and bc_simulate.

...

Further arguments passed to or from other methods.

Value

The length or dimensions of the binclass object.

Examples

1
2
3
4
5
6
7
8
# Simulate data
sim = bc_simulate( 400, 8, 4 )
size( sim ) == 400; size( sim, F ) = c( 400, 8 )
# Split into training and test subsets
index = cv_index( 3, 400 )
dat = train_test( 3, index, sim$y, sim$X )
size( dat ) == 267; size( dat, F ) == c( 267, 8 )
size( dat, train = F ) == 133; size( dat, F, F ) == c( 133, 8 )

rettopnivek/binclass documentation built on May 13, 2019, 4:46 p.m.