R/ingredient_calcs.R

Defines functions ingredient_calcs

ingredient_calcs <- function(x) {

	z <- x %>%
        inner_join(price_list,by='ingredient') %>%
        mutate(price = round(price_per_unit * amount,digits=2)) %>%
        select(ingredient,price,unit)
		  
	return(z)
}
randallhelms/cakeR documentation built on March 19, 2020, 11:54 p.m.