From fe2efd48f9f05e02f56a435806f027b5adb29baa Mon Sep 17 00:00:00 2001 From: Adrienne Stilp Date: Fri, 26 Apr 2024 15:21:13 -0700 Subject: [PATCH] Remove the workspace column from the table We separated it into workspace namespace and name, so we don't need the combined string anymore. --- write_primed_phenotype_inventory_table.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/write_primed_phenotype_inventory_table.R b/write_primed_phenotype_inventory_table.R index a018837..0bda8b1 100644 --- a/write_primed_phenotype_inventory_table.R +++ b/write_primed_phenotype_inventory_table.R @@ -71,6 +71,8 @@ output_table_name = argv$output_table_name id_column_name = quo_name(paste0(output_table_name, "_id")) results <- results %>% + # We separated workspace into namespace and name, so we don't need it anymore. + select(-workspace) %>% select( # Set the id column appropriately, using the output table name. !!id_column_name := phenotype_harmonized_id, @@ -81,7 +83,7 @@ results <- results %>% n_rows, n_subjects, file_path, - everything() + everything(), ) # Delete the table before writing the new data, if it already exists.