checkMWRcens {MassWateR}R Documentation

Check censored data

Description

Check censored data

Usage

checkMWRcens(censdat, warn = TRUE)

Arguments

censdat

input data frame for results

warn

logical to return warnings to the console (default)

Details

This function is used internally within readMWRcens to run several checks on the input data for completeness and conformance.

The following checks are made:

Value

censdat is returned as is if no errors are found, otherwise an informative error message is returned prompting the user to make the required correction to the raw data before proceeding. Checks with warnings can be fixed at the discretion of the user before proceeding.

Examples

censpth <- system.file('extdata/ExampleCensored.xlsx', package = 'MassWateR')

censdat <- suppressWarnings(readxl::read_excel(censpth, na = c('NA', 'na', ''), guess_max = Inf)) 
             
checkMWRcens(censdat)

[Package MassWateR version 2.2.0 Index]