library(tidyverse)

Data import

Running this script will import the datasets you need

source(here::here("code", "healthcare.R"))

Take a glimpse at the heart_joined dataset to look for the variables we'll be searching within


How many people having an "auntie" or "aunt" in their health history?


How many people have Mother/mother but not grandmothers in their family history?


Beginning with heart_joined, create a new column called statin that detects whether or not a patient is on a statin, "and then" filter the dataset to contain only this subgroup of people. Call this new dataframe statin_subgroup

How many people are in this subgroup?




BAREJAA/reactivity documentation built on April 16, 2020, 6:57 p.m.