Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 12 additions & 16 deletions R/TADARefTables.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,18 @@ TADA_GetNutrientSummationRef <- function() {

#' Generate Unique Synonym Reference Table
#'
#' Function generates a synonym reference table containing all unique
#' combinations of TADA.CharacteristicName, TADA.ResultSampleFractionText,
#' TADA.MethodSpeciationName, and TADA.ResultMeasure.MeasureUnitCode. The
#' function also joins in some TADA-specific suggested synonyms for nutrients
#' and priority parameters. These target synonyms (denoted in the reference
#' table with the prefix "Target.") are intended to help the user aggregate
#' synonymous data that may be uploaded with slightly different metadata
#' conventions and prepare nutrient data for total N and P summations. Users can
#' review how their input data relates to target synonyms for
#' TADA.CharacteristicName, TADA.ResultSampleFractionText,
#' TADA.MethodSpeciationName, and TADA.ResultMeasure.MeasureUnitCode. Once
#' the synonym table is created, users may optionally edit the target columns in
#' the reference table to meet their needs. Additionally, the function assumes
#' the user has already removed any data containing invalid
#' characteristic-unit-fraction-speciation combinations (i.e. user has already
#' run TADA_FlagFraction, TADA_FlagSpeciation, TADA_FlagResultUnit, etc.).
#' Function generates a synonym reference table containing all unique combinations of
#' TADA.CharacteristicName, TADA.ResultSampleFractionText, and TADA.MethodSpeciationName. The
#' function also joins in some TADA-specific suggested synonyms for nutrients and priority parameters.
#' These target synonyms (denoted in the reference table with the prefix "Target.") are intended to
#' help the user aggregate synonymous data that may be uploaded with slightly different metadata
#' conventions and prepare nutrient data for total N and P summations. Users can review how their
#' input data relates to target synonyms forTADA.CharacteristicName, TADA.ResultSampleFractionText,
#' and TADA.MethodSpeciationName. Once the synonym table is created, users may optionally edit the
#' target columns in the reference table to meet their needs. Additionally, the function assumes
#' the user has already removed any data containing invalid characteristic-unit-fraction-speciation
#' combinations (i.e. user has alreadyrun TADA_FlagFraction, TADA_FlagSpeciation, TADA_FlagResultUnit,
#' etc.).
#'
#' @param .data TADA dataframe. If a data frame is not provided, the function will return the default internal reference table.
#'
Expand Down
7 changes: 3 additions & 4 deletions R/Transformations.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
#' suggested synonym naming for some priority characteristics. Where a suggested
#' characteristic name, fraction, speciation, or unit is present, the function
#' will convert the TADA.CharacteristicName, TADA.ResultSampleFractionText,
#' TADA.MethodSpeciationName, and/or TADA.ResultMeasure.MeasureUnitCode to
#' the target format. In cases where a target unit or speciation differs from
#' the existing unit or speciation, the reference table will also apply
#' multiplication conversion factors to the TADA.ResultMeasureValue.
#' and TADA.MethodSpeciationName to the target format. In cases where a target
#' speciation differs from the existing speciation, the reference table will
#' also apply multiplication conversion factors to the TADA.ResultMeasureValue.
#'
#' @param .data TADA dataframe
#' @param ref Optional argument to specify which dataframe to use as a reference
Expand Down
28 changes: 12 additions & 16 deletions man/TADA_GetSynonymRef.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions man/TADA_HarmonizeSynonyms.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.