Guest User

Untitled

a guest
Jul 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. df= read.csv("C:/Users/rmahesh/Desktop/gun-violence-data_01-2013_03-2018.csv")
  2. df$incident_id = NULL
  3. df$incident_url = NULL
  4. df$source_url = NULL
  5. df$participant_name = NULL
  6. df$participant_relationship = NULL
  7. df$sources = NULL
  8. df$incident_url_fields_missing = NULL
  9. df$participant_status = NULL
  10. df$participant_age_group = NULL
  11. df$participant_type = NULL
  12. df$incident_characteristics = NULL
  13.  
  14. #Subset of columns with formatting issues:
  15. df2 = df[, c('gun_stolen', 'gun_type', 'participant_age', 'participant_gender')]
Add Comment
Please, Sign In to add comment