formMWRwqx: Format WQX metadata input

View source: R/formMWRwqx.R

formMWRwqxR Documentation

Format WQX metadata input

Description

Format WQX metadata input

Usage

formMWRwqx(wqxdat)

Arguments

wqxdat

input data frame for wqx metadata

Details

This function is used internally within readMWRwqx to format the input data for downstream analysis. The formatting includes:

  • Convert characteristic names: All parameters in Characteristic Name are converted to Simple Parameter in paramsMWR as needed

Value

A formatted data frame of the WQX metadata file

Examples

library(dplyr)

wqxpth <- system.file('extdata/ExampleWQX.xlsx', package = 'MassWateR')

wqxdat <- suppressWarnings(readxl::read_excel(wqxpth, na = c('NA', 'na', ''), col_types = 'text'))
  
formMWRwqx(wqxdat)

massbays-tech/MassWateR documentation built on April 12, 2025, 7:53 p.m.