From 9bffee80ab42ead17d3883e43b5858923d8d618b Mon Sep 17 00:00:00 2001 From: byron jaeger Date: Tue, 12 Dec 2023 17:26:38 -0500 Subject: [PATCH] protect from named char vec --- R/collapse_misc.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/collapse_misc.R b/R/collapse_misc.R index 51073353..cc0df608 100644 --- a/R/collapse_misc.R +++ b/R/collapse_misc.R @@ -16,7 +16,7 @@ as_matrix <- function(x){ #' select_cols <- function(data, col_names){ - collapse::get_vars(data, vars = col_names, return = 'data') + collapse::fselect(data, as.character(col_names), return = 'data') }