Construct and validate a pred_data_t objects, which are used to store predictor
data. Different data types (float, int, bool) have different subclasses
(pred_data_t_float, ...)
Usage
as_pred_data_t(x, type)
# S3 method for class 'pred_data_t'
print(x, nrow = 10, ...)Arguments
- x
Coercible to data.table
- type
Character string specifying the data type: "float", "int", or "bool"
- nrow
- ...
passed to data.table::print.data.table