read_field_json: Read Field Data in JSON Format

View source: R/read_field_json.R

read_field_jsonR Documentation

Read Field Data in JSON Format

Description

Read Multilevel Monitoring System (MLMS) field data in JSON format.

Usage

read_field_json(
  paths,
  wells = mlms::wells,
  ports = mlms::ports,
  tz = "America/Denver"
)

Arguments

paths

'character' vector. Paths to the JSON files to read.

wells

'data.frame' table. MLMS well data, see wells dataset for data structure.

ports

'data.frame' table. MLMS measurement port data, see ports dataset for data structure.

tz

'character' string. Time zone specification. Defaults to America/Denver.

Value

A list of data frame components. See visits and heads datasets for example output.

Author(s)

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

See Also

write_field_json function for writing field data to file in JSON format.

Examples

l <- system.file("extdata/ex-field.json", package = "mlms") |>
  read_field_json()
str(l, max.level = 1)

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