sample_n {bupaR} | R Documentation |
Sample function for eventlog
Description
Sample function for eventlog
Usage
sample_n(tbl, size, replace = FALSE, weight = NULL, .env = NULL, ...)
## S3 method for class 'eventlog'
sample_n(tbl, size, replace = FALSE, weight = NULL, .env = NULL, ...)
## S3 method for class 'grouped_eventlog'
sample_n(tbl, size, replace = FALSE, weight = NULL, .env = NULL, ...)
Arguments
tbl |
Deprecated; please use |
size |
|
replace |
|
weight |
Sampling weights. This must evaluate to a vector of non-negative numbers the same length as the input. Weights are automatically standardised to sum to 1. |
.env |
Deprecated; please don't use. |
... |
ignored |
Methods (by class)
-
sample_n(eventlog)
: Sample n cases of eventlog -
sample_n(grouped_eventlog)
: Stratified sampling of a grouped eventlog: sample n cases within each group
See Also
[Package bupaR version 0.5.5 Index]