ts_stat: Calculate time-series over a depth dependent variable

Description Usage Arguments Value

View source: R/ts_stat.R

Description

Calculate a time series of a statistical measure of modelled versus observed water temperature.

Usage

1
ts_stat(mod, obs, depth.range = NULL, stat = "pearson", tz = "UTC")

Arguments

mod

dataframe; Modelled values in the long format. i.e. same as observed in ACPy

obs

dataframe; Observed values in the long format loaded in using load.obs

depth.range

vector; vector with a depth range to extract RMSE at certain depths. Upper limit first e.g. c(-5,-10). Defaults to whole water column.

stat

'character; which statistic to use. Options are 'RMSE', 'NSE','MAE' and 'pearson'

tz

Timezone string to be supplied to as.POSIXct. Defaults to 'UTC'. This often can be left to the default unless timezone support is specifically required.

Value

data frame; time series of RMSE


tadhg-moore/gotmtools documentation built on Oct. 9, 2019, 2:48 p.m.