w******n 发帖数: 309 | 1 I have 100 files(from the simulation results), say dat1 ... dat100, for each
file, I would like to some analysis, for example, get the mean of each file
. Then I would like to save the analysis results into different files: say
mean1.txt .... mean100.txt. I know how to do for each file, however, I don't
know how to do the loop from file 1 to fil1 100.
thanks a lot1 | D******n 发帖数: 2836 | 2 macro, if you are talking about SAS
each
file
't
【在 w******n 的大作中提到】 : I have 100 files(from the simulation results), say dat1 ... dat100, for each : file, I would like to some analysis, for example, get the mean of each file : . Then I would like to save the analysis results into different files: say : mean1.txt .... mean100.txt. I know how to do for each file, however, I don't : know how to do the loop from file 1 to fil1 100. : thanks a lot1
| g**********t 发帖数: 475 | 3 你用啥软件分析?如果是有命令行模式的软件的话,用Shell、perl或其他的脚本语言
调用。另外用R的话可以直接写个循环分析所有的文件。 |
|