Hi - I'm running into an issue when I use mutate_if in a mixed data frame, where it stops at the first FALSE occurrence:
g <- DF %>%
mutate_if(is.numeric, funs(. /
My large data frame looks something like this:
Marker_2+, ..., Categorial_info, Character_info,...,
where Marker columns are integers and all else are factors. When I run the above script, I get the expected result for the first Marker_1 and Marker_2, but it Marker_3 and Marker_4 are left unchanged. It appears mutate stops at the first FALSE given by is.numeric. Any help would be much appreciated.
I'm using tidyverse 1.2.1