Author: user user

Is this R file path incorrect?

I’m trying to write a simple file path to my downloads folder on my macbook but I’m getting this error: filePath <- file.path(Sys.getenv("HOME"), "Downloads") transactionData <- fread(paste0(filePath,"QVI_transaction_data.csv")) customerData <- fread(paste0(filePath,"QVI_purchase_behaviour.csv")) Error in fread(paste0(filePath, "QVI_transaction_data.csv")) : File ‘/Users/anitaabbot/DownloadsQVI_transaction_data.csv’ does not exist or is non-readable. getwd()==’/Users/anitaabbot/Downloads’ Both files "QVI_transaction_data.csv" and "QVI_purchase_behaviour.csv" are saved in the download folder […]