Sample function for eventlog
Usage
sample_n(tbl, size, replace = FALSE, weight = NULL, .env = NULL, ...)
# S3 method for class 'log'
sample_n(tbl, size, replace = FALSE, weight = NULL, .env = NULL, ...)
# S3 method for class 'grouped_log'
sample_n(tbl, size, replace = FALSE, weight = NULL, .env = NULL, ...)Arguments
- tbl
Event log
- size
integer: Number of cases to sample- replace
logical(defaultFALSE): Sample with replacementTRUEor withoutFALSE.- 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(log): Sample n cases of eventlogsample_n(grouped_log): Stratified sampling of a grouped eventlog: sample n cases within each group
