toRadianTime: Convert Time from 0-24:00 to 0-2*pi

Description Usage Arguments Examples

Description

Because the package overlap parameterizes time of day from 0 to 2*pi, times need to be converted.

Usage

1

Arguments

x

A POSIXct date/time object

Examples

1
2
3
4
5
6
7
x <- strptime('09-18-2010 17:30:05', format='%m-%d-%Y %H:%M:%S')
toRadianTime(x)

# You can also use package lubridate to create date/time objects
library(lubridate)
y <- mdy_hms('09-18-2010 06:00:05')
toRadianTime(y)

dereksonderegger/OccupancyModels documentation built on May 15, 2019, 3:58 a.m.