I would like to have an input that I can state before like so:
GroupVar2 = recommendation$Product
prof.prod <- recommendation %>% group_by(GroupVar2) %>% summarise(value =
sum(Revenue)) %>% filter(value==max(value))
However, I get the error that the "Column GroupVar2
is unknown".
Does anyone know how to use 'recommendation$Product' specified in a placeholder?