debark: Standardize column names and screen for data entry errors, or...

View source: R/debark.R

debarkR Documentation

Standardize column names and screen for data entry errors, or "debark" timber

Description

debark() standardizes the column names of timber for use in sawmill. It also reports the names of any missing required columns, as well as the row/column locations of any cells of an unexpected data type (i.e. a string of text in a column that is supposed to contain numeric values only), as per col_data_types. Finally, debark() adds the columns exclude_sawmill and exclude_sawmill_reason, to be filled in later by sawmill as it encounters unusable factors that need to be excluded from further processing steps.

There is no efficient way to coerce columns; this is left to import.

Usage

debark(timber)

Arguments

timber_path

character: the file path to the raw timber

Value

A tibble of timber with standardized column names and additional columns exclude_sawmill and exclude_sawmill_reason. If columns are missing and/or if unexpected data types are present, a prompt and/or error message will be returned instead.


iAM-AMR/sawmill documentation built on June 30, 2024, 2:25 a.m.