Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary formatting from permit_summar_refactor.R #12

Open
lehostert opened this issue Jan 28, 2021 · 0 comments
Open

Remove unnecessary formatting from permit_summar_refactor.R #12

lehostert opened this issue Jan 28, 2021 · 0 comments
Assignees
Labels
refactor A code change that neither fixes a bug nor adds a feature

Comments

@lehostert
Copy link
Owner

Permit_summary_refactor.R contains several lines that are specific to 2020 data and not generalizable to future data sets.
Remove these sections after repairing the mistakes in the fish data template.

fish_summary <- fish %>%
drop_na(Species_Code) %>%
mutate(across(where(is.character), ~na_if(., "no"))) %>%
mutate(Release_status = replace_na(Release_status, "alive"))%>%
group_by(PU_Gap_Code, Reach_Name, Event_Date, Species_Code, Fish_Species_Common, Fish_Species_Scientific, Release_status) %>%
summarise(Fish_Species_Count = n())

@lehostert lehostert self-assigned this Jan 28, 2021
@lehostert lehostert added the refactor A code change that neither fixes a bug nor adds a feature label Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor A code change that neither fixes a bug nor adds a feature
Projects
None yet
Development

No branches or pull requests

1 participant