check_SDS: Check SDS item values

View source: R/check_SDS.R

check_SDSR Documentation

Check SDS item values

Description

A function used to check the validity of the SDS items. Each SDS item has a specific range of accepted values, and takes NA for missing values. This function checks whether these constraints are satisfied, and if not, returns a list containing the SDS item(s) which violated its/their constraints.

Usage

check_SDS(dat)

Arguments

dat

The data frame containing the new year of (combined) data.

Value

A list with two elements. The first, violations, is a boolean indicating whether or not any violations were found. The second, SDS_viol, is a vector of strings containing the names of the SDS variables that have at least one value out of bounds.

Note

SDSvalue_check ...


CCMH-PSU/CCMHr documentation built on Jan. 31, 2024, 1:08 a.m.