I would try using library(dplyr)
to load the dplyr
package where the mutate function "lives." If you haven't used it before you may have to install it. Another way to load the dplyr package would be to do dplyr::mutate_if()
, but it will only work for that specific line of code (vs. library()
which will make functions from that package available throughout your script).
2 Likes