March 2019
Beginner to intermediate
250 pages
6h 6m
English
We should create a folder for each year in our computer, where each ZIP file is decompressed.
Once folders are created, we can write the following code in R to list all the folders that we have created:
myfiles <- list.files(path = "../MachineLearning/Banks_model/Data", pattern = "20", full.names = TRUE) print(myfiles)## [1] "../MachineLearning/Banks_model/Data/2002"## [2] "../MachineLearning/Banks_model/Data/2003"## [3] "../MachineLearning/Banks_model/Data/2004"## [4] "../MachineLearning/Banks_model/Data/2005"## [5] "../MachineLearning/Banks_model/Data/2006"## [6] "../MachineLearning/Banks_model/Data/2007"## [7] "../MachineLearning/Banks_model/Data/2008"## [8] "../MachineLearning/Banks_model/Data/2009"## [9] "../MachineLearning/Banks_model/Data/2010" ...
Read now
Unlock full access