0
A
回答
2
假設你的意思是最後一個字母排序,並假設你的工作目錄設置適當,
ff <- list.files()
lastfile <- ff[length(ff)] ## or tail(ff,1)
x <- read.csv(lastfile)
相關問題
- 1. 在R 3.3.0中讀取Excel文件(xlsx文件)的軟件包
- 2. 在R中的不同目錄下讀取多個文件
- 3. 如何讀取目錄中最後創建的文件? vb.net
- 4. 無法讀取excel文件中的最後一列數據
- 5. 讀取目錄中的所有文件,包括其子目錄
- 6. 從文件中讀取最後一行
- 7. R中的hybridEnsemble軟件包
- 8. Adabag軟件包中的R
- 9. 從目錄中逐一讀取文件
- 10. 從目錄中逐一讀取文件
- 11. 從目錄中讀取多個文件
- 12. 從一個目錄中讀取ZIP文件中的單個文件
- 13. 讀取文件的最後一個記錄
- 14. 在路徑中輸入最後一個目錄,並在目錄中輸入最後一個文件
- 15. 無法讀取R文件中的Excel文件
- 16. 在jar文件中的目錄中讀取文件
- 17. Groovy在目錄中讀取最近的文件
- 18. 從目錄讀取文件,然後讀取同一文件的特定行c#
- 19. PHP:目錄中的最後文件
- 20. C#讀取目錄中的文件
- 21. 讀取目錄中的文件Aurelia
- 22. 在單列中讀取包含多個值的Excel文件-Java
- 23. 最近2個月只讀取目錄中的文件,子目錄
- 24. 一次在多個文件中批量讀取R讀取
- 25. 如何使用R讀取目錄中的文件
- 26. R讀取目錄中的所有文件
- 27. 從超過10K個文件的目錄中讀取文件
- 28. 如何在文件目錄中讀取
- 29. 在未知目錄中讀取文件
- 30. 在目錄中讀取JPG文件?
什麼是「最後」是什麼意思?最後按字典順序?最近的(最新更新的)? – digEmAll
字典順序 – Neil