Skip to content
Prev 312805 / 398503 Next

match and substitute two variables

Hello,

Try the following.

for(nm in name){
     code[grep(gsub("[ [:alpha:]]+", "", nm), code)] <- nm
}
code


Hope this helps,

Rui Barradas
Em 03-12-2012 15:32, irene escreveu: