I am trying to extract some columns from the data which is result of analysis. The data is composed of 592 rows and 20 variables.
When I run the code as below, I got the error message
"Error in UseMethod("select_") : no applicable method for 'select_' applied to an object of class "character" "
unused_cols <- -c(2:9)
pvals_long <- pvals %>%
map(function(x){
x <- x %>%
dplyr::select(unused_cols) %>%
gather(key = "celltype_pair", value = "pvalue", -interacting_pair)
x
})
Thanks in advance,