Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- df= read.csv("C:/Users/rmahesh/Desktop/gun-violence-data_01-2013_03-2018.csv")
- df$incident_id = NULL
- df$incident_url = NULL
- df$source_url = NULL
- df$participant_name = NULL
- df$participant_relationship = NULL
- df$sources = NULL
- df$incident_url_fields_missing = NULL
- df$participant_status = NULL
- df$participant_age_group = NULL
- df$participant_type = NULL
- df$incident_characteristics = NULL
- #Subset of columns with formatting issues:
- df2 = df[, c('gun_stolen', 'gun_type', 'participant_age', 'participant_gender')]
Add Comment
Please, Sign In to add comment