Skip to content

Commit

Permalink
Merge pull request #39 from vbfelix/calc_perc
Browse files Browse the repository at this point in the history
hotfix
  • Loading branch information
vbfelix authored Jan 23, 2024
2 parents 1e9326e + 6e288b9 commit ba0fb03
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions vignettes/functions_as.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,3 @@ The goal of `as_num` is to be a more generalized version of `as.numeric`, where
as_num("123.456,78")
```

If you set the argument `sum` to `TRUE` the function will divide the values by their total and multiply by 100.

```{r as_perc-sum}
mtcars %>%
count(vs,am) %>%
mutate(perc = as_perc(n,sum = TRUE))
```

0 comments on commit ba0fb03

Please sign in to comment.