timestamp: Timestamp

Description Usage Arguments Value Author(s) Examples

Description

merges a Date m/dd/yyyy or mm/dd/yyyy column with a Time h:mm:ss or hh:mm:ss (24h) column to create a TS (Timestamp) Column (m)m/dd/yyyy h:mm (24h)

Usage

1
timestamp(dataset, Date, Time)

Arguments

dataset

A dataframe with columns of time of date and time (24hr) information.

Date

[optional, "Date" is the dafault] column that has date information.

Time

[optional, "Time" is the dafault] column that has time information.

Value

The orginal dataframe with an additional column "TS"

Author(s)

J. Dustin Tracy <jtracy2@student.gsu.edu>, Zhiyi Xu, Leena Choi, Sari Acra, Kong Y. Chen, Maciej S. Buchowski

Examples

1
2
3
4
5
6
7
8
9
data(zPhysActBedRest)

##  Example 1:
##  wa_tp5788 = read.csv("wa_tp5788.csv")
    wa_tp5788_ts = timestamp(wa_tp5788)

##  Example 2:   
##  wr_tp5788_cc = read.csv("wr_tp5788_cc.csv")
    wr_tp5788_ts = timestamp(wr_tp5788_cc, Time="clock", Date="calendar")

PhyActBedRest documentation built on Sept. 12, 2016, 9:16 a.m.