From 837d40a5d6f88882ff4d70e3e26b65993db00574 Mon Sep 17 00:00:00 2001 From: Damiano Oldoni Date: Wed, 26 Jun 2024 17:29:01 +0200 Subject: [PATCH] Avoid .data$ in dplyr::nest() See #128 --- R/indicator_total_year.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/indicator_total_year.R b/R/indicator_total_year.R index 8629def1..432c60d8 100644 --- a/R/indicator_total_year.R +++ b/R/indicator_total_year.R @@ -175,7 +175,7 @@ indicator_total_year <- function(df, start_year_plot = 1940, dplyr::rowwise() %>% dplyr::do(year = .data$first_observed:maxDate) %>% dplyr::bind_cols(df) %>% - tidyr::unnest(.data$year) + tidyr::unnest("year") # calculate numbers to plot counts_ias_grouped_by_year <-