bupaR (version 0.4.1)

sample_n: 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 eventlog
sample_n(tbl, size, replace = FALSE, weight, .env)

# S3 method for grouped_eventlog sample_n(tbl, size, replace = FALSE, weight, .env)

Arguments

tbl

Eventlog

size

Number of cases to sample

replace

Sample with replacement or not

weight

N/A

.env

N/A

Methods (by class)

  • eventlog: Sample n cases of eventlog

  • grouped_eventlog: Stratified sampling of a grouped eventlog: sample n cases within each group