Can you explain to me if this is a bug or a feature of the dplyr::summarise() function?
structure(list(Month = c(2, 2, 2, 3, 3, 3),
daily_temperature_2m_min = c(23.4, 23.2, 23.4, 24, 24.6, 24.6)),
row.names = c(NA, -6L), class = c("data.frame")) |>
dplyr::summarise(Low = base::min(daily_temperature_2m_min, rn.na = TRUE), .by = Month)
Month Low
1 2 1
2 3 1
structure(list(Month = c(2, 2, 2, 3, 3, 3),
daily_temperature_2m_min = c(23.4, 23.2, 23.4, 24, 24.6, 24.6)),
row.names = c(NA, -6L), class = c("data.frame")) |>
dplyr::summarise(Low = base::min(daily_temperature_2m_min), .by = Month)
Month Low
1 2 23.2
2 3 24.0
Is it really possible that the appearance of an option rn.na = TRUE in the function dplyr::summarise() can only produce units in the function base::min()?