How to Change R Working Directory (Quickly & Easily)

Поділитися
Вставка
  • Опубліковано 5 вер 2024
  • Do you need to load data from a directory or folder on your computer in R or RStudio but don't know how to do this? This short tutorial shows how to change your R working directory so that you may easily load files from any folder or directory.
    Code I use in this tutorial to see and then set the working directory:
    1. getwd() (this shows the current R working directory)
    2. setwd("D:/tutorials/") (this sets a new R working directory)
    #rstudio #rlanguage #tutorial #datascience

КОМЕНТАРІ •