I have a large data.frame of character data that I want to convert based on what is commonly called a dictionary in other languages.
Currently I am going about it li
Here is a quick solution
dict = list(AA = '0101', AC = '0102', AG = '0103') foo2 = foo for (i in 1:3){foo2 <- replace(foo2, foo2 == names(dict[i]), dict[i])}