ggpage icon indicating copy to clipboard operation
ggpage copied to clipboard

Small mistake in one of the sample code (rolling average)

Open AnttiRask opened this issue 10 months ago • 0 comments

Incorrect: midbuild <- map_df(.x = 0:50 * 10 + 1, ~ prebuild %>% mutate(score = ifelse(is.na(score), 0, score), score_smooth = zoo::rollmean(score, .x, 0), score_smooth = score_smooth / max(score_smooth), rolls = .x))

Correct: midbuild <- map_df(.x = 0:50 * 10 + 1, ~ prebuild %>% mutate(score = ifelse(is.na(value), 0, value), score_smooth = zoo::rollmean(score, .x, 0), score_smooth = score_smooth / max(score_smooth), rolls = .x))

AnttiRask avatar Aug 25 '23 06:08 AnttiRask