I would like to generate a list of 50 words from the letters "a b c d". every word should have 5 characters. every word has to be different from the others in at least 2 positions (letters) using base R.
x="a,b,c,d"
and results should be list of 50 words:
l=['abcda','cdabd','bdaca'.......]
expand.grid function in R generate words with only 1 letter difference.