loess regression on each group with dplyr::group_by()
问题 Alright, I'm waving my white flag. I'm trying to compute a loess regression on my dataset. I want loess to compute a different set of points that plots as a smooth line for each group. The problem is that the loess calculation is escaping the dplyr::group_by function, so the loess regression is calculated on the whole dataset. Internet searching leads me to believe this is because dplyr::group_by wasn't meant to work this way. I just can't figure out how to make this work on a per-group basis