Displaying 1 result from an estimated 1 matches for "rig1".
Did you mean:
reg1
2009 Oct 02
3
help with regexp mass substitution
...quot;, "col1.16.3",
"col2.16.3", "col3.16.3", "col4.16.3", "col5.16.3", "txt.17.3",
"col1.17.3", "col2.17.3")
I'd like to convert only ^col variables to have eg
>From "col4.1.3" --> To "dom3.rig1.col4"
to test the matching regex I've tryied
grep("^col\\d{1,2}.\\d{1,2}.\\d{1,2}$",varnames, perl=T, value=T)
to substitute the ^col variables, I've tryied
gsub("^col(\\d{1,2}).(\\d{1,2}).(\\d{1,2})", "dom\\3.rig\\2.col\\1", varnames)
I'm a newbi...