Error reading .xlsx files. The script was shared, I haven´t modified it. I make sure to set the working directory and files

25 Views Asked by At
> marco = read.xlsx(paste0(rutadatos, "MarcoDeMuestreo.xlsx"))
Error in read.xlsx.default(paste0(rutadatos, "MarcoDeMuestreo.xlsx")) : 
  File does not exist.
> rutadatos
[1] "F:/IECM/COTECORA/2a_Reunion_trabajo_202024/marcoyplan2021/marcoyplan/"
> list.files()
[1] "Alcaldias.xlsx"       "APP_2021"             "MarcoDeMuestreo.xlsx" "marcoyplan2021.Rproj"
[5] "Muestra_2021"         "PlanDeMuestreo.xlsx" 
> getwd()
[1] "F:/IECM/COTECORA/2a_Reunion_trabajo_202024/marcoyplan2021"
> 

I tried checking the working directory and listing files, but I have the same error, files does not exist

0

There are 0 best solutions below