r - Error with na.rm = TRUE -
i running code this:
quintiles.df %>% mutate(quintile = cut(zscore, breaks = unique(quantile(zscore, probs = seq(0, 1, = 1 / number.of.quantiles)), na.rm = true), labels = false, include.lowest = true)) error in mutate_impl(.data, dots) : evaluation error: missing values , nan's not allowed if 'na.rm' false.
i know data have na observation , have added na.rm = true quantile function, however, still error: missing values , nan's not allowed if 'na.rm' false.
i wonder if please me solve problem?
Comments
Post a Comment