POSIXct_info: Wrapper function to get additional information from POSIXct...

Description Usage Arguments Value Author(s) Examples

View source: R/POSIXct_info.R

Description

The function is a wrapper to get additional information from a POSIXct object. It is straightforward to subset the original data based on the output.

Usage

1
POSIXct_info(data_POSIXct)

Arguments

data_POSIXct

An object of class POSIXct. It is important to specify the correct timezone.

Value

The output is a data.frame object including many additional information based on the input. If desired you can use cbind() to add this information to the original dataframe.

Author(s)

Frederik Sachser

Examples

1
2
3
4
now <- as.POSIXct(x = "2015-01-30 20:58:00", tz = "CET", origin = "01/01/1970")
art_date <- seq(now, now + 90*60*99, 90*60)
attributes(art_date)$tz <- 'CET'
POSIXct_info(data_POSIXct = art_date)

sachserf/chronobiology documentation built on May 29, 2019, 12:21 p.m.