assign_assess_hier: Assign Assessment Status This function requires a very...

Description Usage Arguments Value

View source: R/assign.R

Description

Assign Assessment Status This function requires a very specific data frame and is only written as a function to enable unit testing.

Usage

1
assign_assess_hier(.data, .col, .type, .assign_unassessed)

Arguments

.data

a dataframe

.col

a column name of .data that should be updated with the hierarchy represented as an ordered factor.

.type

a single charcter string indicating the type of hierarchy to assign .col.

.na_to_unassessed

a logical indicating if NA values in .col should be represented as "Unassessed".

Value

A data frame where .col has been updated to an ordered factor.


BWAM/stayCALM documentation built on May 21, 2020, 3:24 p.m.