assembleObs: Assembles two CRHM obs data frames

View source: R/assembleObs.R

assembleObsR Documentation

Assembles two CRHM obs data frames

Description

This function joins two data frames of CRHM obs. The data frames can have different columns (it is assumed that they will), but should have some dates in common. Both data frames must have the same time step.

Usage

assembleObs(obs1, obs2, quiet = TRUE, logfile = "")

Arguments

obs1

Required. The first CRHMr data frame of obs values.

obs2

Required. The second obs data frame.

quiet

Optional. Suppresses display of messages, except for errors. If you are calling this function in an R script, you will usually leave quiet=TRUE (i.e. the default). If you are working interactively, you will probably want to set quiet=FALSE.

logfile

Optional. Name of the file to be used for logging the action. Normally not used.

Value

If successful, returns the merges values of both data frames. Note that where the datetimes in the data frames are not the same, the merged values will be set to NA_real_. If unsuccessful, returns the value FALSE.

Author(s)

Kevin Shook

Examples

## Not run: 
MSC.trh <- assembleObs(MSC.t, MSC.rh)
## End(Not run)

CentreForHydrology/CRHMr documentation built on April 6, 2024, 5:27 p.m.