From 7b328ea57a2e502bfee7101d2037d25cbb98995e Mon Sep 17 00:00:00 2001 From: PeterM74 <60593713+PeterM74@users.noreply.github.com> Date: Tue, 20 Aug 2024 19:20:45 +1000 Subject: [PATCH] Remove warning on convert_tabular use --- R/tables_long.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/tables_long.R b/R/tables_long.R index 7864512..e06670f 100644 --- a/R/tables_long.R +++ b/R/tables_long.R @@ -117,10 +117,10 @@ convert_tabular <- function( if (hasMeasure) { spec <- spec |> - mutate(.valname = names(.env$measures)[match(.data$.value, .env$measures)]) |> + mutate(.valname = names(.env$measures)[match(.value, .env$measures)]) |> unite('.name', c(all_of(.env$colterms), '.valname'), sep = '_', remove = FALSE) |> - select(-.data$.valname) |> - arrange(across(all_of(colterms)), match(.data$.value, .env$measures)) + select(-.valname) |> + arrange(across(all_of(colterms)), match(.value, .env$measures)) } visualtab <- pivot_wider_spec(table, spec, id_cols = all_of(rowterms))