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

Temporary change - exclude nas

parent ba82b50a
Branches
No related tags found
No related merge requests found
......@@ -80,11 +80,20 @@ Mesobromion <- function(species.path, traits.path, output, myfunction="get.corXY
traits <- traits %>%
column_to_rownames("species0") %>%
rename_all(.funs=~gsub(pattern=".mean$", replacement="", x=.)) %>%
mutate_if(~is.character(.), .funs=~as.factor(.))
mutate_if(~is.character(.), .funs=~as.factor(.)) %>%
column_to_rownames("species0")
#temporary ### Use only a subset of traits
#dplyr::select(LeafArea:Disp.unit.leng)
print("TEMPORARY - delete species with any NA in traits")
traits <- traits %>%
filter(complete.cases(.))
species <- species %>%
dplyr::select(rownames(traits))
print("TEMPORARY - revert back species to pa")
species <- (species>0)*1
if(combinations=="all") {
## create list of indices for each combination of traits up to a max number of interactions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment