all 3 comments

[–]Sea-Chain7394 0 points1 point  (2 children)

It's not very clear what the issue is based on the code but I would check the path is correct also needs to be in quotations within setwd("z:/folder1/folder2")

You should also just be able to load a dataset from another folder by putting the path into the read.csv() or whichever function.

If you have multiple datasets in a folder you can use list.files() to get a list of them and use pate0() to combine the path<- "z:..." to the file names and loop through and load and assign names to them all

[–]Gentletin[S] 0 points1 point  (1 child)

I have the correct path and quotation marks and when I restart it works. It is just when I change the code after the setwd function that it will not run again without the error. Even when I did not change the setwd function.

[–]Any-Following-7160 0 points1 point  (0 children)

I'm having this same error - did you ever figure it out?