Open hos1995 opened 3 years ago
@hos1995 You are correct that you are not pointing to the right relative path.
If you use read.csv(here::here('data/raw/ltdb-data-dictionary.csv'), stringsAsFactors=F)
, this error should be resolved. When you use the here::here()
function, you can always assume your file path starts at the root of your project folder (i.e. where ever your .Rproj
file lives).
This is useful whenever analysis files are located in a different directory from where the data lives. For more context checkout WK02's lecture videos on this function and the concept of portability.
@hos1995 You are correct that you are not pointing to the right relative path.
If you use
read.csv(here::here('data/raw/ltdb-data-dictionary.csv'), stringsAsFactors=F)
, this error should be resolved because you can always assume your file path starts at the root of your project folder (i.e. where ever your.Rproj
file lives).
Thank you! That worked great!
I'm trying to create a new RMD file so I can make the functions for the lab and I get an error whenever I run the following:
The error I get says:
Am I missing a step to connect to the where the csv file is? I determined the file-path from the project and yet it's still saying it's not connected.