Which is the best method to apply a script repetitively to n .csv files in R?

后端 未结 2 392
感情败类
感情败类 2020-11-28 11:39

My situation:

  1. I have a number of csv files all with the same suffix pre .csv, but the first two characters of the file name are different (ie
2条回答
  •  萌比男神i
    2020-11-28 12:14

    Be sure to use Rs dir command to produce the list of filenames instead of manually entering them in.

    filenames = dir(pattern="*01.csv")
    for( i in 1:length(filenames) )
    {
      ...
    

提交回复
热议问题