Skip to contents

Convert `ts` to data frame with time column

Usage

ts_df(ts, tzero = 0, val.name = "x")

Arguments

ts

A `ts` object.

tzero

A numeric (default: 0). Time shift.

val.name

A character. Name for value column (default: "x").

Value

A data frame with columns time and value.