I would like to create a file with every combination of letters out to 10 characters.
For example, the first few lines
a
b
c
then eventually
aa
ab
ac
then eventually
aaa
aab
aac
and so on. Finally, it will end with
zzzzzzzzzz
This will create 26^10 lines. Is there a simple way to create a file like this with some kind of loop?
Thanks in advance.
Related Posts with loop to increment a string variable
how to count the numbers of variables that meet some requirements in the matrix?I want to count the numbers of variables whose p value is less than .2 after running a regression mo…
How to allow for time-varying treatment effects and heterogeneous treatment subgroup effects in generalized DD?Hi all, I am running a generalized DD to estimate the effect on infant mortality rate (imr) of a he…
Dropping lowest n values of a group variableHi, my question is a bit silly but I am just not being very bright today As you can see from the da…
Trim Stata OutputHi, My dataset has many (more 100,000) observations. I am running a standard fixed effects model wi…
Mininum edge weights in the path between two nodes (Network Analsysis)Dear Statalisters, (Stata version 15.1) I have a network N and I am using the user-developed packag…
Subscribe to:
Post Comments (Atom)
0 Response to loop to increment a string variable
Post a Comment