factor_times: Factor time of day into categories of 4.

Description Usage Arguments Value Examples

View source: R/factor_times.R

Description

factor_times will categorise a time vector into one of four times of day: Morning, Afternoon, Evening, or Night.

Usage

1
factor_times(TimeVector)

Arguments

TimeVector

String or time data in 'HH:MM' format

Value

A string vector with up to 4 levels.

Examples

1
2
3
4
## Not run: 
factor_times(data)

## End(Not run)

LCBC-UiO/MOAS documentation built on Dec. 21, 2018, 7:13 p.m.