get_profile: Retrieve Profile Data

View source: R/get_profile.R

get_profileR Documentation

Retrieve Profile Data

Description

Retrieve pressure, temperature, and water-quality data for site visits.

Usage

get_profile(
  site_nm = NULL,
  stime_dt = NULL,
  poi = NULL,
  time_dt = NULL,
  pcode = NULL,
  strings_as_factors = TRUE
)

Arguments

site_nm

'character' vector. Local site name for a MLMS well.

stime_dt

'POSIXct' or 'character' vector. Start time for field visit.

poi

'POSIXct' or 'character' vector of length 2. Start and end limits on the period of interest.

time_dt

'POSIXct' or 'character' string. Estimated field visit time, the closest time in the vector of field visit start times.

pcode

'character' string. USGS 5-digit parameter code. For example, the parameter code for Tritium is "07000".

strings_as_factors

'logical' flag. Whether character vectors should be converted to factor class.

Value

A data frame.

Author(s)

J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center

See Also

plot_profile function to plot multilevel data for a site visit.

Examples

d <- get_profile(site_nm = "USGS 133", pcode = "07000")
str(d)

d <- get_profile(poi = c("2023-01-01", NA), strings_as_factors = FALSE)
str(d)

mlms documentation built on April 4, 2025, 4:43 a.m.