Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. t = as.character("ETS2 (log2)")
  2. t2 = as.character("ETS1 (log2)")
  3.  
  4. #for t1
  5. gsub("[ (log2)]", "", t)
  6. str_replace_all(t, "[[ (log2)]]", "")
  7. #for t2
  8. gsub("[ (log2)]", "", t2)
  9. str_replace_all(t2, "[[ (log2)]]", "")
  10.  
  11. #for t1
  12. "ETS "
  13. "ETS "
  14. #for t2
  15. "ETS1 "
  16. "ETS1 "
  17.  
  18. #for t1
  19. "ETS2 "
  20. "ETS2 "
  21. #for t2
  22. "ETS1 "
  23. "ETS1 "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement