Skip to content

Commit

Permalink
remove totals with janitor
Browse files Browse the repository at this point in the history
  • Loading branch information
carriewright11 committed May 29, 2024
1 parent d4b7d65 commit 7e5a6c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -428,12 +428,10 @@ High_asset_data %>%

```{r}
library(forcats)
library(janitor)
df_simplified %>% group_by(NTEE_text) %>%summarize(count = n()) %>%
mutate(NTEE_text = str_replace(string = NTEE_text, pattern = "NA", replacement = "Unclassified")) %>%
mutate(Percentage = round(count/sum(count)*100, digits = 2)) %>%
arrange(NTEE_text) %>%
adorn_totals("row")
arrange(NTEE_text)
Total_NTEE <-df_simplified %>% group_by(NTEE_text) %>%summarize(count = n()) %>%
mutate(NTEE_text = str_replace(string = NTEE_text, pattern = "NA", replacement = "Unclassified")) %>%
Expand Down

0 comments on commit 7e5a6c6

Please sign in to comment.