My files have the format:
ada1 ada2 ada3 .... ada10 ada11 ada12
Unfortunately, when I write a10, a11 and a12 precede a2. Could you help me sort it alphabetically, as it should be?
#
Edit
Now I have thousands of these files. Basically, xyz1-12, abc1-12, etc.
I use the following to get all the files:
GG <- grep("*.txt", list.files(), value = TRUE)
Therefore, I can not manually "ada".
source share