InMemoryData | R Documentation |
This data container stores a vector as it is in the RAM and makes it accessible for Compboost.
data_mat |
( |
data_identifier |
( |
S4 object.
InMemoryData$new() InMemoryData$new(data_mat, data_identifier) InMemoryData$new(data_mat, data_identifier, use_sparse)
This class doesn't contain public fields.
$getData()
: () -> matrix()
$getIdentifier()
: () -> character(1)
$getDataType()
: () -> character(1)
# Sample data:
data_mat = cbind(rnorm(10))
# Create new data object:
data_obj = InMemoryData$new(data_mat, "my_data_name")
# Get data and identifier:
data_obj$getData()
data_obj$getIdentifier()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.