df2time: df2time

Description Usage Arguments Value Examples

View source: R/make_time.R

Description

df2time

Usage

1
df2time(precision, df)

Arguments

precision

choice between "daily","hourly","minute","second",...

df

date.frame of the columns year, months,...

Value

The output is a POSIXlt value

Examples

1
2
df <- data.frame(year=rep(2015,5),month=c(1,2,3,4,5),day=c(1,1,1,1,1),hour=c(1,2,3,4,5))
df2time(precision="hourly",df)

jeanmarielepioufle/timeManip documentation built on May 19, 2019, 9:25 a.m.