Description Usage Arguments Value Examples
Generic function to determine the size
(i.e., length, number of rows or columns)
of various binclass
objects.
1 |
x |
An R object. Currently there are methods for
|
... |
Further arguments passed to or from other methods. |
The length or dimensions of the binclass
object.
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 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.