rotations_to_cycle: Convert Rotations Input to an Expanded Shift Cycle

View source: R/server-rotations_to_cycle.R

rotations_to_cycleR Documentation

Convert Rotations Input to an Expanded Shift Cycle

Description

'rotations_to_cycle()' converts a string like '"4-2"' to a vector of 'TRUE' and 'FALSE' values to pass to schedule_by_cycle()

Usage

rotations_to_cycle(rotations)

Arguments

rotations

Character. A string of alternating numbers and dashes representing the "on" and "off" periods of a rotating schedule. This must contain an even number of numerals and dashes between each numeral (i.e. "4-2-3-3" is a valid input; "4-2-3" or "4 2 3" is not).


jesse-smith/schedules documentation built on July 21, 2022, 9:40 a.m.