Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = as.character("ETS2 (log2)")
- t2 = as.character("ETS1 (log2)")
- #for t1
- gsub("[ (log2)]", "", t)
- str_replace_all(t, "[[ (log2)]]", "")
- #for t2
- gsub("[ (log2)]", "", t2)
- str_replace_all(t2, "[[ (log2)]]", "")
- #for t1
- "ETS "
- "ETS "
- #for t2
- "ETS1 "
- "ETS1 "
- #for t1
- "ETS2 "
- "ETS2 "
- #for t2
- "ETS1 "
- "ETS1 "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement