decdatetime: Converting From a Decimal Datetime

Description Usage Arguments Value Author(s) Examples

View source: R/a_few_more_funcs.R

Description

Separates the date and hour components of a single column of decimal datetime.

Usage

1
decdatetime(datetime, origin = "1899-12-30")

Arguments

datetime

A vector of decimal datetime

origin

A character string specifying the origin of the date numbering system. This must be structured as "yyyy-mm-dd". Defaults to "1899-12-30"

Value

A two-element list:

Author(s)

Matt Tyers

Examples

1
2
3
4
5
6
data(datetime2015)
head(datetime2015)

date_hour <- decdatetime(datetime2015)
head(date_hour$date)
head(date_hour$hour)

mbtyers/towercount documentation built on Dec. 21, 2021, 3:56 p.m.