diff --git a/NAMESPACE b/NAMESPACE index 7ceaf9c..8fc7e8f 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -20,6 +20,9 @@ export(abs_to_rel) export(albarede_juteau_1984) export(as_ASTR) export(at_to_wt) +export(bdl_strategy_default) +export(bdl_strategy_negative) +export(bdl_strategy_none) export(copper_alloy_bb) export(copper_alloy_pollard) export(copper_group_bray) diff --git a/R/ASTR_basic.R b/R/ASTR_basic.R index b894e40..9aad994 100644 --- a/R/ASTR_basic.R +++ b/R/ASTR_basic.R @@ -12,8 +12,8 @@ #' \itemize{ #' \item **as_ASTR**: Transforms an R `data.frame` to an object of class #' `ASTR`. -#' \item **read_ASTR**: Reads data from a file (.csv, .xls, .xlsx) into -#' an object of class `ASTR`. +#' \item **read_ASTR**: Reads data from a file (.csv, .xls, .xlsx) and +#' converts it into an object of class `ASTR`. #' \item **validate**: Performs additional validation on `ASTR` and returns #' a `data.frame` as a workable list of potential issues. #' \item **get_..._columns**: Subsets `ASTR` tables to columns of a certain @@ -33,10 +33,10 @@ #' @param id_column name of the ID column. Defaults to "ID" #' @param context columns that provide contextual (non-measurement) information; #' may be column names, integer positions, or a logical inclusion vector -#' @param bdl strings representing “below detection limit” values. By default, -#' the following are recognized: "b.d.", "bd", "b.d.l.", "bdl", "% purrr::discard(is.null) df3 <- as.data.frame(col_list, check.names = FALSE) @@ -222,8 +214,7 @@ read_ASTR <- function( "", "n/a", "NA", "N.A.", "N/A", "na", "-", "n.d.", "n.a.", "#DIV/0!", "#VALUE!", "#REF!", "#NAME?", "#NUM!", "#N/A", "#NULL!" ), - bdl = c("b.d.", "bd", "b.d.l.", "bdl", "