'R summarize problems - totals have values like '2e+04' rather than a simple count
I have a table with several hundred rows like below
| Area | Numerator | Denominator | Group |
|---|---|---|---|
| AreaA | 1 | 10 | 1 |
| AreaB | 3 | 10 | 2 |
There are 5 groups numbered 1 to 5. I am looking to create a summary table that just sums numerator and denominator by Group. Code I am using is
#Create table of totals by group
SummaryICS2 <- ExampleBook %>%
group_by(Group) %>%
summarise(across(-Area, sum)) %>%
adorn_totals()
Instead I am getting below. Can anyone explain problem and correct code please?
Solution 1:[1]
options(scipen=999)
Changes from scientific notation to what I was looking for.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ouflak |

