I have two problems with a combinatory/permutation issue in R.
I am running a combination for letters. I want to validate all resulting combinations to a german dictionary.
letters <- c("a","g","t")
sum_3 <- expand.grid(letters, letters, letters)
Ideally, this would indicate that the word "tag" (english = day) will be found as it is existent in a German dictionary. How to connect/load/validate the results with a German dictionary?
If I increase the number of letters and the expand.grid to a number n, then at some point, this becomes to memory intensive. Is there any way to slice the expand.grid part into multiple segments in order to avoid memory breakdown?