chunk-methods | R Documentation |
Returns (invisibly) the object containing train and test observations \bm{x}_{1}, \ldots, \bm{x}_{n}
as well as true class membership \bm{\Omega}_{g}
for the test dataset. Vectors \bm{x}
are subvectors of
\bm{y} = (y_{1}, \ldots, y_{d})^{\top}
.
## S4 method for signature 'RCLS.chunk'
chunk(x = NULL, variables = expression(1:d))
## ... and for other signatures
x |
see Methods section below. |
variables |
a vector containing indices of variables in subvectors |
Returns an object of class RCLS.chunk
.
signature(x = "RCLS.chunk")
an object of class RCLS.chunk
.
Marko Nagode
data(iris)
# Split dataset into train (75%) and test (25%) subsets.
set.seed(5)
Iris <- split(p = 0.75, Dataset = iris, class = 5)
# Extract chunk from train and test datasets.
Iris14 <- chunk(x = Iris, variables = c(1,4))
Iris14
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.