Skip to content

Commit

Permalink
Update PCTPTNUM
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyad committed Apr 2, 2024
1 parent ed660c4 commit 4154f0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions data-raw/pc.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ library(dplyr)
library(lubridate)
library(labelled)
library(admiral)
library(ggplot2)

# Create pc ----
data("ex")
Expand Down Expand Up @@ -104,6 +105,12 @@ PC_Urine <- PC %>%
PCTPT == "24h Post-dose" ~ "12-24h Post-dose",
PCTPT == "48h Post-dose" ~ "24-48h Post-dose"
),
PCTPTNUM = case_when(
PCTPT == "0-6h Post-dose" ~ 3,
PCTPT == "6-12h Post-dose" ~ 9,
PCTPT == "12-24h Post-dose" ~ 18,
PCTPT == "24-48h Post-dose" ~ 37
),
Conc = Urine
)

Expand Down
Binary file modified data/pc.rda
Binary file not shown.

0 comments on commit 4154f0d

Please sign in to comment.