Learn R Programming

describedata (version 0.1.1)

sample_flow: Create table illustrating sample exclusions

Description

Generate a table illustrating sequential exclusion from an analytical sample due to user specified exclusions.

Usage

sample_flow(df, exclusions = c())

Value

A data.frame with columns Exclusion, 'Sequential Excluded', and 'Total Excluded' for display.

Arguments

df

A data.frame or tibble.

exclusions

Character vector of logical conditions indicating which rows should be excluded from the final sample. Exclusions occur in the order specified.