Skip to content

Commit 74dc79a

Browse files
committed
Prefix all_of with dplyr::
1 parent 2dbe1db commit 74dc79a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

R/convert_monthly_rows_to_vars.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ convert_monthly_rows_to_vars <- function(data,
1818

1919
data %>%
2020
dplyr::mutate(month_name = month_order[.data[[month_num_var]]]) %>%
21-
dplyr::select(-all_of(month_num_var)) %>%
21+
dplyr::select(-dplyr::all_of(month_num_var)) %>%
2222
dplyr::rename(
23-
cost = all_of(cost_var),
24-
beddays = all_of(beddays_var)
23+
cost = dplyr::all_of(cost_var),
24+
beddays = dplyr::all_of(beddays_var)
2525
) %>%
2626
tidyr::pivot_wider(
2727
names_from = "month_name",

R/fill_ch_names.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ fill_ch_names <- function(ch_data,
106106
ch_active = any(.data[["ch_active"]])
107107
) %>%
108108
dplyr::ungroup() %>%
109-
dplyr::rename(ch_postcode_lookup = all_of("ch_postcode")) %>%
109+
dplyr::rename(ch_postcode_lookup = dplyr::all_of("ch_postcode")) %>%
110110
dplyr::mutate(
111111
ch_pc_partial = stringr::str_sub(.data[["ch_postcode_lookup"]], 1, -2),
112112
ch_pc_partial2 = stringr::str_sub(.data[["ch_postcode_lookup"]], 1, -3),

R/process_extract_delayed_discharges.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ process_extract_delayed_discharges <- function(
4848

4949
dd_clean <- data %>%
5050
dplyr::rename(
51-
record_keydate1 = all_of("rdd"),
52-
record_keydate2 = all_of("delay_end_date")
51+
record_keydate1 = dplyr::all_of("rdd"),
52+
record_keydate2 = dplyr::all_of("delay_end_date")
5353
) %>%
5454
# Use end of the month date for records with no end date
5555
# (but we think have ended)

0 commit comments

Comments
 (0)