Skip to contents

Format timeserie dataframe into a matrix

Usage

ts2mat(ts, twl_offset = 0, value = "value")

Arguments

ts

data.frame of a tag, containing at least date and value.

twl_offset

Shift of the middle of the night compared to 00:00 UTC (in hours). If not provided, it uses the middle of all nights.

value

column name to extract

Value

A data.frame with columns date and value.