segmentTS.mkdf: Make data frames for event/signal type of time-series data

Description Usage Arguments Value

Description

This function makes the empty data frames for storing time-series event/signal data. Removes data in simulated dataset that does not overlap (in time) with observed data.

Usage

1
segmentTS.mkdf(df.obs, df.sim, func.var, date.var)

Arguments

df.obs

data.frame object based on ccgcrv output for observational data. At minimum, requires variables of values and date (YYYY-MM-DD)

df.sim

data.frame object based on ccgcrv output for simulated data At minimum, requires variables of values and date (YYYY-MM-DD)

func.var

name of variable for data values. Must have same name in both df.obs and df.sim.

date.var

name of variable for dates. Must have same name in both df.obs and df.sim.

Value

a list object with two data.frames, df.obs.evnt, df.sim.evnt formatted with new variable names


lcalle/segmentTS documentation built on May 7, 2019, 10:52 p.m.