sample_n {bupaR}R Documentation

Sample function for eventlog

Description

These objects are imported from other packages. Follow the links below to see their documentation.

dplyr

sample_n

Usage

## 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 log instead.

size

integer: Number of cases to sample

replace

logical (default FALSE): Sample with replacement TRUE or without FALSE.

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)

See Also

slice_sample


[Package bupaR version 0.5.4 Index]