I am trying to round all of the numeric values to a certain number of digits. I can get it to work with out setting the digits (so it just rounds to whole numbers), but I want to be able to set how many digits I am getting back. Any suggestions?
fdecteamstats=filter(decteamstats, Team == "Seattle U") %>%
mutate_if(is.numeric, round(digits = 2))
The error I'm getting is:
Error: expecting a one sided formula, a function, or a function name.