meet: Find openings common to two agendas.

Description Usage Arguments Examples

View source: R/meetr.R

Description

Given two agendas, created by the 'available' function, and a meeting duration, we want to find suitable times for a meeting.

Usage

1
meet(agenda1, agenda2, how_long, all = FALSE)

Arguments

agenda1

First agenda.

agenda2

Second agenda.

how_long

Character, how long will the meeting be (format: 'HH:MM').

all

If TRUE, return all common openings, otherwise return earliest common opening.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
agenda1 <-
this_week_and_next(1) %>%
  available(
    monday('9:00 to 12:00', '16:00 to 17:00') +
      friday()
  )

agenda2 <-
  this_week() %>%
  available(
    week_days('11:00 to 12:00') -
      friday()
  ) +
  next_week() %>%
  available(
    week_days('13:00 to 17:00')
  )

meet(agenda1, agenda2, '00:30')

artichaud1/meetr documentation built on May 24, 2019, 1:35 a.m.