IfElseTimedateCompare: Compares two times and returns greater or lesser value

Description Usage Arguments Details Value

Description

Examines two time columns, returns the greater or lesser value and inserts that value in a result column

Usage

1
IfElseTimedateCompare(df, col1, col2, result, default_tz, tz)

Arguments

df

Dataframe of location data.

col1

Column name, col1 is compared to col2

sign

String, either ">" or "<" for returning greater than or less than values, respectively. Default is ">".

col2

Column name, col2 is compared to col1.

result

String, name of column to insert results. Default is "result".

default_tz

String, timezone that timedate reverts to, based on OS time.

tz

String, timezone of original data (may be different from default_tz).

Details

Used in RoostArrivalDeparture(). Ensures that result is in the correct timezone.

Value

Original dataframe with a new "result" column


Blakemassey/baear documentation built on Dec. 25, 2021, 9:48 a.m.