From 38a6096222bc3908a1385825a377d13cbca15a64 Mon Sep 17 00:00:00 2001 From: Mao Wang <22060736+mao-wang@users.noreply.github.com> Date: Tue, 18 Mar 2025 23:28:45 +0800 Subject: [PATCH] Update Part2.R correction with the right code to arrange with descending. --- solutions/Part2.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/Part2.R b/solutions/Part2.R index 656073f..b52900b 100644 --- a/solutions/Part2.R +++ b/solutions/Part2.R @@ -6,7 +6,7 @@ d |> mutate(state_pop = sum(pop), pct_worker_type = pop/state_pop) |> filter(worker_type == "essential") |> - arrange(pct_worker_type) + arrange(desc(pct_worker_type)) ## Challenge 2: pivot_longer() ----