choose-file-option- choose file set working dir getwd() [1] "/Users/Mhasan1" setwd("~/Desktop/2020.09.14/data") dir() # to check what files in the folder