Skip to content

Commit

Permalink
rolling mean
Browse files Browse the repository at this point in the history
  • Loading branch information
carlylovas committed Jan 21, 2025
1 parent 3cf4c8b commit 399c149
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions R/garfo/license_movement.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion R/garfo/license_movement.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ grouped_center_bio <- function(clean_survey, ...){
}
weighted_data <- grouped_center_bio(clean_survey, est_year) %>%
mutate(decade = 10*est_year %/% 10)
mutate(decade = 10*est_year %/% 10,
avg_lat = zoo::rollapplyr(avg_lat, width = 5, FUN = mean, align = "center", partial = T))
```

```{r}
Expand Down

0 comments on commit 399c149

Please sign in to comment.