Fill gaps

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

Arguments

availability_array

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

too_long

The maximum number of minutes 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

allow_shorter_meetings

If TRUE, allow meetings shorter than desired_length

Value

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