I am trying to gather summary statistics of a variable (diffdays) when the variable "disease" is equal to Malaria.
My code for this is:
summary(deathdata$diffdays, deathdata$disease == "Malaria")
This doesn't seem to be working the way I'd like but am I close? Any help is appreciated.