I currently have a df in R with a column called FORMULAS that looks like this:
What I would like to do is to isolate the formula at the first equal sign:
This is the code I came up with so far:
df$FORMULAS <- str_extract(df$FORMULAS, "(?<=\\} =)")
where I have tried to use the lookahead procedure, but without much luck. Is this the best approach to solve the issue? Do you have any suggestions on what am doing wrong?
Thanks so much in advance!