Skip to content

Commit

Permalink
fix temp var
Browse files Browse the repository at this point in the history
  • Loading branch information
VLucet committed Mar 3, 2022
1 parent 8701af3 commit 4ca69a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/spm_aggregate-helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ spm_aggregate_routine <- function(dataset_data, boundaries, group_by, level,
if (level == "patch"){

dataset_data_tmp <- dataset_data_tmp %>%
dplyr::mutate(temp = as.numeric(temp)) %>%
dplyr::mutate(temp = as.numeric(.data$temp)) %>%
tidyr::complete(.data[[time_col]], .data$patch_id,
fill = list(temp = as.numeric(fill_value)))

} else if (level == "boundary"){

dataset_data_tmp <- dataset_data_tmp %>%
dplyr::mutate(temp = as.numeric(temp)) %>%
dplyr::mutate(temp = as.numeric(.data$temp)) %>%
tidyr::complete(.data[[time_col]], .data[[boundary]],
fill = list(temp = as.numeric(fill_value)))

Expand Down

0 comments on commit 4ca69a8

Please sign in to comment.