fill_gaps: Fill gaps

View source: R/schedule.R

fill_gapsR Documentation

Fill gaps

Description

Fill gaps

Usage

fill_gaps(
  availability_array,
  too_long = 4,
  desired_length = 60,
  slot_length = 15,
  earliest_possible = TRUE,
  host_rooms,
  excluded_hosts = c(),
  included_hosts = c(),
  allow_shorter_meetings = FALSE,
  max_tries = 1000,
  add_gap = FALSE
)

Arguments

availability_array

3d array of availability with entries 0, 1, and 2

too_long

The maximum number of slots a gap should be

desired_length

The amount of time to require in a slot

slot_length

The amount of time each slot represents

earliest_possible

If TRUE, tries to do this meeting as early in the day as it can; if FALSE, as late

host_rooms

The vector of host rooms: room is entry, host name is names

excluded_hosts

A vector of hosts who shouldn't be scheduled

included_hosts

A vector of hosts who should be scheduled. Only include one of these two.

allow_shorter_meetings

If TRUE, allow meetings shorter than desired_length

add_gap

If TRUE, add a gap between meetings of one slot if possible

Value

a 3d array of availability with entries 0, 1, and 2


bomeara/scheduleR documentation built on Jan. 21, 2025, 3:26 p.m.