Skip to content
Snippets Groups Projects
Commit ebcba6fd authored by Francesco Sabatini's avatar Francesco Sabatini
Browse files

transform char to factor in taits

parent 330ff31a
Branches
No related tags found
No related merge requests found
...@@ -80,7 +80,8 @@ Mesobromion <- function(species.path, traits.path, output, myfunction="get.corXY ...@@ -80,7 +80,8 @@ Mesobromion <- function(species.path, traits.path, output, myfunction="get.corXY
traits <- traits %>% traits <- traits %>%
column_to_rownames("species0") %>% column_to_rownames("species0") %>%
rename_all(.funs=~gsub(pattern=".mean$", replacement="", x=.)) #%>% rename_all(.funs=~gsub(pattern=".mean$", replacement="", x=.)) %>%
mutate_if(~is.character(.), .funs=~as.factor(.))
#temporary ### Use only a subset of traits #temporary ### Use only a subset of traits
#dplyr::select(LeafArea:Disp.unit.leng) #dplyr::select(LeafArea:Disp.unit.leng)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment