Question : r set working directory
Answered by : mitrofanos-ntatidis
setwd("/Users/SampleUser/Desktop/R")
Source : | Last Update : Sun, 31 May 20
Question : change working directory
Answered by : phoenix-p41nh0sxcbzf
# import os module
import os
# change the current working directory
# to specified path
os.chdir('c:\\gfg_dir')
# verify the path using getcwd()
cwd = os.getcwd()
# print the current directory
print("Current working directory is:", cwd)
Source : https://www.geeksforgeeks.org/python-os-chdir-method/ | Last Update : Tue, 22 Nov 22