read_field_obs: Read in field data into a data.frame

View source: R/read_field_obs.R

read_field_obsR Documentation

Read in field data into a data.frame

Description

Read in field data into a data.frame

Usage

read_field_obs(file, var_name = "temp")

Arguments

file

a file path for a supported field data format (currently, tsv, csv, or RDS containing a data frame with Date, depth, wtemp or similar columns)

var_name

Name of variable to look for in field_obs file. Should match a GLM simulation variable (see output from sim_vars). Defaults to 'temp'

Value

a data.frame with DateTime, Depth, and wTemp columns

Author(s)

Jordan S. Read

See Also

get_temp, resample_sim

Examples

# -- read in a .csv file --
file <- system.file('extdata', 'LakeMendota_field_data_hours.csv', package = 'glmtools')
field_data <- read_field_obs(file)


USGS-R/glmtools documentation built on March 26, 2024, 5:43 p.m.