R/cake_boxes.R

Defines functions cake_boxes

cake_boxes <- function(board) {

boxes <- gs_quickread('Sweet Time Berlin Tracking','boxes') %>%
	tidycols()

board_dims <- board$size_cm

boxes <- boxes %>%
	filter(length_cm > board_dims) %>%
	arrange(length_cm)
	
box_size <- boxes[1,]

return(box_size)

}
randallhelms/cakeR documentation built on March 19, 2020, 11:54 p.m.