check_weights: Checks that an appropriate weighting variable has been...

View source: R/data-utils.R

check_weightsR Documentation

Checks that an appropriate weighting variable has been provided

Description

This helper function makes a few simple checks to identify obvious issues with the weights provided.

Usage

check_weights(data, weight_col)

Arguments

data

Dataframe of interest.

weight_col

Quoted name of weights column.

Value

Returns NULL. Errors if a problem is discovered.


tidyhte documentation built on Aug. 14, 2023, 5:08 p.m.