-
-
Save hcozart/fe5fc5f1e64f6bb4eb817e1a89703d21 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Make categories more legiable | |
levels(NYC_Death2$Sex)= c("Female", "Male") | |
levels(NYC_Death2$Ethnicity) = c("Asian & Pacific Islander","Hispanic", | |
"Black Non-Hispanic","White Non-Hispanic") | |
levels(NYC_Death2$Cause.of.Death) = c("Accidents","Alzheimers","Anemias", | |
"Aortic Aneurysm & Dissection", | |
"Homicide", "Atheroscerosis", | |
"Benign & Uncertain Neoplasms", | |
"Cardiovascular Disorder in Perinatal period", | |
"Stroke", | |
"Disorders of the Gallbladder", | |
"Chronic Liver Disease", | |
"Chronic Lower Respiratory Disease", | |
"Congenital Malformations", | |
"Diabetes","Heart Diseases", | |
"Hypertension and Kidney Diseases", | |
"Immunodeficiency Virus", | |
"Influenza & Pneumonia", | |
"Suicide","Cancer", | |
"Mental Disorder due to Alcohol", | |
"Kidney Disease","Parkinsons", | |
"Peptic Ulcer","Pneumonitis", | |
"Pregnancy & Childbirth", | |
"Accidental Drug Poisoning", | |
"Respiratory Distress of Newborn", | |
"Blood Poisoning","Short Gestation/LBW", | |
"Tuberculosis","Hepatitis") | |
#top ten causes of Death | |
TOP = c("Heart Diseases","Cancer", | |
"Influenza & Pneumonia","Diabetes", | |
"Chronic Lower Respiratory Disease","Stroke", | |
"Immunodeficiency Virus","Accidents", | |
"Hypertension and Kidney Diseases", | |
"Accidental Drug Poisoning") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment