Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. A B C
  2. hello Radiation therapy NA
  3. Hello1 hello2 for neurology hello3 radiation
  4.  
  5. A B C
  6. hello therapy NA
  7. Hello1 hello2 hello3
  8.  
  9. df <- data.frame(B = c("Radiation therapy", "hello2 for neurology"))
  10.  
  11. df$B <- gsub("Radiation | for.*", "", df$B)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement