Skip to content
Snippets Groups Projects
Commit 94d5a9e1 authored by Simeon's avatar Simeon
Browse files

Update count_clusters.R

parent df7ac3cd
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ count_clusters <- function(clus_tbl_list){ ...@@ -35,7 +35,7 @@ count_clusters <- function(clus_tbl_list){
# Transform the data frame from wide to long using pivot_longer(), and create # Transform the data frame from wide to long using pivot_longer(), and create
# a new column called "threshold" with the values previously used as column names # a new column called "threshold" with the values previously used as column names
# Rename the "value" column to "cluster_number" using dplyr::rename() # Rename the "value" column to "cluster_number" using dplyr::rename()
clus_counts %>% clus_counts <- clus_counts %>%
bind_rows() %>% bind_rows() %>%
pivot_longer(everything()) %>% pivot_longer(everything()) %>%
mutate(threshold = as.numeric(name)) %>% mutate(threshold = as.numeric(name)) %>%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment