adjust_dtc: Add or Subtract Time from a Date-Time Object

Description Usage Arguments Value Author(s)

Description

Computes difftime for date-time objects in R, removing separators from CDISC-typical character strings as needed.

Usage

1
adjust_dtc(time1, timediff, units, tz, POSIX)

Arguments

time1

Date-time object in character format.

timediff

Value by which to increment or decrement.

units

Units of timediff; i.e. minutes, hours, days or weeks.

tz

POSIX-compliant time zone.

POSIX

Boolean; if TRUE, output POSIXct object, otherwise output character string.

Value

Either character string or POSIXct object, depending on POSIX parameter.

Author(s)

Ryan Kyle, ryan.kyle@mail.mcgill.ca


rpkyle/cscmisc documentation built on May 13, 2019, 12:06 p.m.