check_ok: Check whether a plausibility condition is satisfied

View source: R/utility.R

check_okR Documentation

Check whether a plausibility condition is satisfied

Description

Returns a logical vector indicating whether a given check column equals "ok". If the column does not exist in the data, all cases are treated as passing.

Usage

check_ok(data, col)

Arguments

data

A data frame containing plausibility check variables.

col

A character string specifying the column name to check for "ok" entries (case-sensitive).

Details

Used inside the plausicheck() function.

Value

A logical vector of length nrow(data).

Examples

example_df <- data.frame(check_ip = c("ok", "nope", "ok", "OK"))
check_ok(example_df, "check_ip")

rextor documentation built on May 21, 2026, 5:09 p.m.