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

Minor bug fix

parent e9214bf9
No related branches found
No related tags found
No related merge requests found
......@@ -83,8 +83,11 @@ Mesobromion <- function(species.path, traits.path, output, myfunction="get.corXY
if(exclude.na==T){
print("Excluding NAs and recalculating relative covers")
traits <- traits %>%
filter(complete.cases(.))
traits <- traits %>%
rownames_to_column("species0") %>%
filter(complete.cases(.)) %>%
column_to_rownames("species0")
species <- species %>%
dplyr::select(rownames(traits)) %>%
mutate(sumVar = rowSums(.)) %>%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment