![]() If you try to read the file “iris.csv” without specifying the directory you will get an error. If you set your directory to “my_work” as I did, and your file is in “my_work/data”, you have to read the file “data/iris.csv”. I get the chance for a slightly more advanced thing. my work) easily, and click on OpenĪfter this, you will get notified of the directory change, and you can finally, easily read your file. You can then navigate to your folder (e.g. It is pretty easy: Session -> Set Working Directory -> Choose Directory (note the shortcu, if you are a shortcut fan). ![]() Let’s now assume dat you have to read the file named iris.csv, that is located in the folder shown below. In my case, the default folder is my Documents directory. As any other software, when opened R is set to read and write files in a default location, which much likely is not the location in which you want to save your data. When you open RStudio, the software will also open an instance of R. In this brief tutorial we will discuss how to navigate through folders in RStudio.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |