Buscar
Estás en modo de exploración. debe iniciar sesión para usar MEMORY

   Inicia sesión para empezar


Por supuesto:

IST 387 Fall 2020

» Iniciar este curso
(Practica preguntas similares gratis)
Pregunta:

How do you get the name of the current working directory in R?

Autor: Zhasmina Yanislavova Tacheva



Respuesta:

The working directory is the folder on your computer R checks for a file whenever you want to import data into R. For example, you can set your Downloads folder as your working directory, and then you'll only need to supply the name of the file you want to import instead of the full path to that file: df <- read_csv("myFile.csv") instead of: df <- read_csv("C:\\User\\Downloads\\myFile.csv") To see what your current working directory is, type: getwd() And to change it: setwd("path\\to\\new\\working\\directory")


0 / 5  (0 calificaciones)

1 answer(s) in total