Given this string:
DNS000001320_309.0/121.0_t0
How would I return everything before the second occurrence of “_”?
DNS000001320_309.0/121.0
I am using R.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think this might do the task (regex to match everything befor the last occurence of
_):E.g.: