validate_lc_column_id: Validate 'lc_column_id' column

View source: R/validations.R

validate_lc_column_idR Documentation

Validate 'lc_column_id' column

Description

This function checks the 'lc_column_id' column of a provided data frame to ensure that it exists, contains no NA values, and contains no spaces in its entries. It also reports the number of unique values in the column.

Usage

validate_lc_column_id(df, column_name, verbose = TRUE)

Arguments

df

A data frame that should contain the 'lc_column_id' column.

column_name

The name of the column in df which contains the date-time values.

verbose

A logical indicating whether to print informative messages. Default is TRUE.

Value

An invisible NULL. The function is used mainly for its side effects (i.e., printing validation results).

Examples

df <- data.frame(lc_column_id = c("id1", "id2", "id3", "id1", "id 2", NA))
validate_lc_column_id(df, column_name = "lc_column_id")


MoTrPAC/MotrpacBicQC documentation built on Sept. 26, 2024, 11:10 a.m.