Skip to content

Commit

Permalink
remove terrestrial layer from profor habitat filter
Browse files Browse the repository at this point in the history
  • Loading branch information
timelyportfolio committed Apr 29, 2018
1 parent d37d68f commit 9e0eb86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ebc_vue/src/profor/habitatfilters.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions profor/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ profor %>%
bind_rows(
data_frame(
habitat = c("NA","NA"),
ecoregion = c(NA,"NA"),
ecoregion = c("NA","NA"),
code = "NA"
),
.
Expand All @@ -209,6 +209,11 @@ profor %>%
)
} %>%
arrange(desc(habitat), ecoregion) %>%
# all terrestrial so remove this layer
select(-habitat) %>%
# only need one NA since removing top layer
na.omit() %>%
unique() %>%
mutate(id = paste0("habitat",1:n())) %>%
{
cat(
Expand All @@ -223,7 +228,7 @@ export default function() {
"
,d3r::d3_nest(., value_cols=c("code","id"))
),
file="../../profor2/src/habitatfilters.js"
file="../../ebc_vue/src/profor/habitatfilters.js"
)
}

Expand Down

0 comments on commit 9e0eb86

Please sign in to comment.