![]() This is because in R the backslash ‘\’ is the ‘escape’ character - R interprets the symbol as an escape character not as a backslash. If we copy the file path of a file in Windows and paste it in to our R code ‘as is’, there is a problem with the backslash ‘\’ file path separators. To copy the path of a file in Windows, see the note below. ![]() Importing data into R using an absolute path You can customize this location via Tools|Global Options, or in individual files - see below. When you install RStudio, it creates a default working directory, where it assumes files are going to be located. Getting and setting the working directory.Using a project in RStudio to locate and find files. ![]() How to import data into R using RStudio from files stored in local directories, using absolute and relative file paths Links to topics on this page
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |