How to identify and change working directories using the getwd and setwd functions in the R programming language. More details: statisticsglob...
R code of this video:
getwd() # Apply getwd function
setwd("C:/Users/Joach/Desktop/my_folder") # Apply setwd function
getwd() # Checking new working directory
write.csv2(1:5, "some_data_1.csv") # Write csv file to path
my_path <- "C:/Users/Joach/Desktop/my_folder" # Save path
write.csv2(1:5, # Write csv file to path
paste0(my_path, "/some_data_2.csv"))
Follow me on Social Media:
Facebook - Statistics Globe Page: / statisticsglobecom
Facebook - Group for Discussions & Questions: / statisticsglobe
LinkedIn - Statistics Globe Page: / statisticsglobe
LinkedIn - Group for Discussions & Questions: / 12555223
Twitter: / joachimschork
Music by bensound.com
13 окт 2024