mergeTS: Merges all the data.frames in the list into single data.frame

Description Usage Arguments Examples

Description

Merges all the data.frames in the list into single data.frame

Usage

1
2
mergeTS(DF_list, output_DF = T, use_list_names = F,
  additional_ts = .POSIXct(integer(0)), ignore_tz = F)

Arguments

DF_list

is a list of data.frames. Each data.frame should be of type timestamp|value1|value2...

output_DF

if TRUE, then returns output in the form of data.frame instead of data.table

use_list_names

if TRUE, the names of the list are assigned the columns names

additional_ts

an POSIXct vector of timestamps which needs to be added into the table. The values are repeated from the previous timestamp

ignore_tz

timezone error is ignored.

Examples

1
2
3
4
5
data("example_mtc_device")
mtc_device = merge(example_mtc_device)
df_1 = mtc_device[seq(1,17,2),]
df_2 = mtc_device[seq(2,17,2),]
merged_df = mergeTS(list(df_1,df_2))

systeminsights/mtconnectR documentation built on July 3, 2019, 1:37 p.m.