Truncate Given Dataframe According to Given Time Window

Share:

Description

The input dataframe should have a column named 'Time'. If both 'time1', 'time2' and 'last' were given, then the actual window size should the smaller of (time2 - time1) and 'last'.

Usage

1
DataSlice(df, time1 = 000001, time2 = 235959, last = 24 * 3600)

Arguments

df

dataframe to be truncated.

time1

lower bound of the time window.

time2

upper bound of the time window.

last

width od the time window.

Value

A dataframe, or NA if no entries satisfy the given time window.