I am trying to import an XLSX file into R to begin my class project. It is giving me issues, as it returns a result with 0 variables. I have tried to rework the pathway to the file multiple times with no different result. Anyone have an idea of what I'm doing wrong?
My input:
customer_data <- fread("~C:\\matly\\Desktop\\Grad School\\Class 4\\Customer.xlsx", stringsAsFactors=FALSE)
The output:
The filename, directory name, or volume label syntax is incorrect.
Warning messages:
1: In (if (.Platform$OS.type == "unix") system else shell)(paste0("(", :
'(~C:\matly\Desktop\Grad School\Class 4\Customer.xlsx) > C:\Users\matly\AppData\Local\Temp\RtmpGs4FDg\file434f8231' execution failed with error code 1
2: In fread("~C:\\matly\\Desktop\\Grad School\\Class 4\\Customer.xlsx", :
File 'C:\Users\matly\AppData\Local\Temp\RtmpGs4FDg\file434f8231' has size 0. Returning a NULL data.table.