suppose I like to map any combination of string of length k into integers (if count only 26 latters uppers and lowers I will have (26+26) ^k combination. Is there a fast way in r to map, given string of length k into unique integer?
For example: 1. Say for k=1 and c("a","d","z"), then the result will be c(1,4,26). 2. Say for k=2 and c("aa","da","zA"), then the result will be c(53,157,1379).