Displaying 1 result from an estimated 1 matches for "moretoo".
Did you mean:
moreton
2009 Aug 25
3
Regular expression to define contents between parentheses
...le to figure out of find a solution in the R-help archives about how to delete all the characters contained in groups of parenthesis. I have a vector that looks more or less like this:
myvector<-c("something (80 km/h, sd) & more (6 kg/L,sd)", "somethingelse (48 m/s, sd) & moretoo (50g/L , sd)")
I want to extract all the strings that are not contained in parenthesis, the goal would be to obtain the following new vector:
subvector<-c("something & more", "somethingelse & moretoo")
I tried the following, but this pattern seems to enclose a...