same_str_as: Create time.table from a template

Description Usage Arguments

View source: R/time.table.R

Description

Turns a data.table into a time table using attributes from another time.table.

Usage

1
2
same_str_as(dt, tt, add.index = c(), add.measurement = c(),
  add.auxiliary = c())

Arguments

dt

data.table containing data

tt

time.table to use as template

add.index

new index columns present in dt

add.measurement

new measurement columns present in dt

add.auxiliary

new auxiliary columns present in dt

Note that all columns in tt must be present in dt and that any columns in dt not in tt are lost.


rossklin/timetablr documentation built on May 27, 2019, 11:40 p.m.