I'm trying to use pipes but I think something is wrong with my syntaxis. When I write:
mean(b_2021_01$Day.of.week, na.rm=TRUE)
Everything is ok, but when I write...
b_2021_01 %>% mean(Day.of.week, na.rm=T)
An error message appears "Warning message: In mean.default(., Day.of.week, na.rm = T) : argument is not numeric or logical: returning NA"
The "Day.of.week" variable is an int, I don't understand why it says that my argument is not numeric.