I have a folder named GitHub and a folder inside that one named covid_equity. I could only find similar examples where people tried to change their working directories to a file rather than a folder. When I enter getwd(), I get /Users/diegoesparza.
> getwd()
[1] "/Users/diegoesparza"
When I try to read in a .csv from covid_equity, using
college_data_tibble <- read_csv("college_data_tibble.csv")
I get that the file does not exist in the current directory. But when I try:
college_data_tibble <- read_csv("GitHub/covid_equity/college_data_tibble.csv")
it works. Then I am not sure why
setwd("C:/Users/diegoesparza/GitHub/covid_equity")
returns the error "cannot change working directory. I bought a new computer yesterday and downloaded the .csv files from an email I sent from my old computer, copied them from Downloads and pasted them into the covid_equity folder that is inside the GitHub folder.
Edited: results from getwd() put into code format