importPeakFQ_oneFile: Import Data from PeakFQ Output

Description Usage Arguments Details Value Examples

View source: R/importPeakFQ_oneFile.R

Description

The importPeakFQ_oneFile function reads output from PeakFQ when the output is contained in a a single EXP file and a single PRT file.

Usage

1
importPeakFQ_oneFile(pfqPath, destination = "peakFQ_extract")

Arguments

pfqPath

A directory that contains a single EXP file and a single PRT file, both from peakFQ and both containing the same gage IDs.

destination

The directory name that will be created to hold all of the output from this function.

Details

This function allows users to parse the output from peakFQ when all sites are contained in a single EXP and a single PRT file. This function will create new files, with a single EXP and a single PRT for each site, that can then be imported using importPeakFQ.

WARNING: This function will create new files on your computer.

Value

Creates a directory structure in destination that contains a directory for each station number in the EXP file. Each gage subdirectory will contain the resulting single-site EXp and PRT files.

Examples

1
2
3
4
peakFQdir <- paste0(
  file.path(system.file("exampleDirectory", package = "WREG"),
    "pfqImport_oneFile"))
importedData <- importPeakFQ_oneFile(pfqPath = peakFQdir)

wfarmer-usgs/WREG documentation built on July 24, 2020, 1:28 a.m.