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(. / Marker_2+))
My large data frame looks something like this:
colnames = Marker_1+, Marker_2+, ..., Categorial_info, Character_info,..., Marker_3+, Marker_4+
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