Description Usage Arguments Details Value Examples
View source: R/select_samples.R
This function selects subset of rows from data set. This is usefull if data is large and we need just a sample to calculate profiles.
1 | select_sample(data, n = 100, seed = 1313)
|
data |
set of observations. Profile will be calculated for every observation (every row) |
n |
named list of vectors. Elements of the list are vectors with points in which profiles should be calculated. See an example for more details. |
seed |
seed for random number generator. |
Note that select_subsample
function is S3 generic.
If you want to work on non standard data sources (like H2O ddf, external databases)
you should overload it.
a data frame with selected rows
1 2 3 | library("DALEX")
small_apartments <- select_sample(apartmentsTest)
head(small_apartments)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.