Skip to content

Commit

Permalink
Update AdHocQueries.R
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasbueckle committed Feb 20, 2024
1 parent 6b00905 commit a0d4aab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ctpop_plots/AdHocQueries.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ all_datasets %>% filter(status=="Atlas") %>% group_by(organ, dataset_cnt) %>% ta
donors = read_csv("../ad_hoc_queries/input/donor-info.csv")
donors

donors %>% filter(age<18) %>% view()

# mean age
donors$age %>% mean()
donors$age[!is.na(donors$age)] %>% mean()
Expand All @@ -142,3 +144,4 @@ donors %>% group_by(sex) %>% tally()

# race
donors %>% group_by(race) %>% tally()

0 comments on commit a0d4aab

Please sign in to comment.