Skip to contents

Constructs a ts object from a data frame containing time and value columns.

Usage

proc2ts(proc.df, val_col = "observed", time_col = "GPS", frequency = 4096)

Arguments

proc.df

A data frame containing processed time-series data.

val_col

A character string. Name of the column to use as the signal values (default: "observed").

time_col

A character string. Name of the column to use as the start time in GPS seconds (default: "GPS").

frequency

A numeric value. Sampling frequency in Hz (default: 4096).

Value

A ts object constructed from the selected value column, starting at the time specified in time_col.

See also

Examples

if (FALSE) { # \dontrun{
df <- data.frame(GPS = 1000000000 + 0:(4095) / 4096, observed = rnorm(4096))
ts_obj <- proc2ts(df)
} # }