How do I count the number of files read into this list?

て烟熏妆下的殇ゞ 提交于 2019-12-02 08:32:00

问题


I have a bunch of csv files that I am reading into a list like this:

f <- list.files(pattern="201\\d{5}\\.csv")

Is there any way to count how many files that I am reading in?


回答1:


Yes, length(f) will give you the number of file names in f.



来源:https://stackoverflow.com/questions/18175979/how-do-i-count-the-number-of-files-read-into-this-list

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!