change string to pattern
string2pattern(string)
string
A character vector
string=c("I(age^2)","factor(cyl)","log(mpg)") string2pattern(string)