Skip to content

Commit

Permalink
110102
Browse files Browse the repository at this point in the history
  • Loading branch information
maclomaclee committed Jan 11, 2024
1 parent 4ef0672 commit 1064e97
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wrangling/data_wrangle_script.R
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,14 @@ df <- df %>%
df <- df %>%
mutate(drugname2_I = str_replace_all(drugname1_I, "SEP(?!-363856)", "SEP-363856"))

df <- df %>%
mutate(CategoryDiseaseInduction = case_when(
CategoryDiseaseInduction == "Genetic (e.g. DISC1 KO, DAT KO, D2R overexpression)" ~ "Genetic",
CategoryDiseaseInduction == "Pharmacological (e.g. psychostimulants, NMDA antagonists)" ~ "Pharmacological",
TRUE ~ CategoryDiseaseInduction # Keep other values unchanged
))


# Replace unit of measurements for drugs with abbreviations
df <- df %>%
mutate(`Measurement unit of treatment dose:[1]` = str_replace_all(`Measurement unit of treatment dose:[1]`, "miligrams \\(mg\\) per kg", "mg/kg"),
Expand Down

0 comments on commit 1064e97

Please sign in to comment.