From cb2b132b543b4493e1f6e021c86ca9466aa412a1 Mon Sep 17 00:00:00 2001 From: Lukas Gessl Date: Tue, 21 Nov 2023 16:34:20 +0000 Subject: [PATCH] dplyr::all_of() --- R/read.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/read.R b/R/read.R index e52e8ea..32c2996 100644 --- a/R/read.R +++ b/R/read.R @@ -45,14 +45,14 @@ read <- function( # expression to matrix gene_names <- res[["expr"]][[gene_id_col]] expr_mat <- expr_tbl |> - dplyr::select(!all_of(gene_id_col)) |> + dplyr::select(!dplyr::all_of(gene_id_col)) |> as.matrix() |> t() colnames(expr_mat) <- gene_names # pheno: move patient ids into first column pheno_tbl <- pheno_tbl |> - dplyr::relocate(all_of(patient_id_col)) + dplyr::relocate(dplyr::all_of(patient_id_col)) return(res) } \ No newline at end of file