get_max_gap_per_guest: Get the maximum number of adjacent slots a guest is available...

View source: R/schedule.R

get_max_gap_per_guestR Documentation

Get the maximum number of adjacent slots a guest is available for

Description

This ignores things like lunch (i.e., if there is a gap before lunch and two after, it will return 3)

Usage

get_max_gap_per_guest(availibility_array, guest_name)

Arguments

availibility_array

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

guest_name

The name of the guest

Value

The maximum number of adjacent slots a guest is available for


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