Convert processed data frame to time series
proc2ts.RdConstructs a ts object from a data frame containing time and value columns.
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.
Examples
if (FALSE) { # \dontrun{
df <- data.frame(GPS = 1000000000 + 0:(4095) / 4096, observed = rnorm(4096))
ts_obj <- proc2ts(df)
} # }