Skip to content

Commit

Permalink
Update 03-attribute-operations.Rmd
Browse files Browse the repository at this point in the history
I just quickly used backstick to test if the runner is happy with that.
  • Loading branch information
defuneste authored May 3, 2024
1 parent 2544375 commit 567c9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 03-attribute-operations.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ world_agg5 = world |>
dplyr::select(pop, continent, area_km2) %>% # sélectionne les colonnes d’intérêt
group_by(continent) |> # regroupe par continents et synthétise:
summarize(Pop = sum(pop, na.rm = TRUE), Superficie = sum(area_km2), N = n()) |>
mutate(Densité = round(Pop / Superficie)) |> # calcule la densité de population
mutate(`Densité` = round(Pop / Superficie)) |> # calcule la densité de population
slice_max(Pop, n = 3) |> # ne garde que les 3 plus peuplés
arrange(desc(N)) # trie par ordre du nombre de pays
```
Expand Down

0 comments on commit 567c9df

Please sign in to comment.