Get WQP Organization Identifier For Each WQP Monitoring Location Identifier
Source:R/Utilities.R
TADA_GetMonLocByOrgId.Rd
This function creates a dataframe with two columns to show the organization identifier for each monitoring location. The user can select whether the monitoring location identifier column displays the original WQP 'MonitoringLocationIdentifier' or the 'TADA.MonitoringLocationIdentifier'. When 'TADA.MonitoringLocationIdentifier' is selected (with id = "tada"), there may be fewer rows in the resulting data set than when 'MonitoringLocationIdentifier" is selected (with id = "wqp"). This may occur if other EPATADA package functions have already been run, such as TADA_FindNearbySites or TADA_FindPotentialDuplicatesMultipleOrgs, because these functions group sites that are nearby or duplicates of each other.
Arguments
- .data
A TADA dataframe.
- id
Character argument. Determines which monitoring location identifier and organization identifier from the TADA dataframe to display. When id = "wqp", 'MonitoringLocationIdentifier' is used. When id = "tada", 'TADA.MonitoringLocationIdentifier" is used. Default is id = "wqp".
Examples
data(Data_6Tribes_5y_Harmonized)
orgsite_crosswalk_originalwqp <- TADA_GetMonLocByOrgId(
Data_6Tribes_5y_Harmonized,
id = "wqp"
)
orgsite_crosswalk_tada <- TADA_GetMonLocByOrgId(Data_6Tribes_5y_Harmonized,
id = "tada"
)