How to Save a Data Frame in R (Example) | Set Working Directory | setwd(), save() & load() Functions

Опубликовано: 20 Февраль 2023
на канале: Statistics Globe
760
14

How to save a data frame in the R programming language. More details: https://statisticsglobe.com/save-data...
R code of this video:

data <- data.frame(x1 = 1:5, # Create example data
x2 = letters[1:5])
data # Print example data

setwd("C:/Users/Joach/Desktop/my folder") # Set working directory

save(data, file = "my_data_frame.Rda") # Save data frame

load(file = "my_data_frame.Rda") # Reload data frame

Follow me on Social Media:
Facebook – Statistics Globe Page:   / statisticsglobecom  
Facebook – R Programming Group for Discussions & Questions:   / statisticsglobe  
Facebook – Python Programming Group for Discussions & Questions:   / statisticsglobepython  
LinkedIn – Statistics Globe Page:   / statisticsglobe  
LinkedIn – R Programming Group for Discussions & Questions:   / 12555223  
LinkedIn – Python Programming Group for Discussions & Questions:   / 12673534  
Twitter:   / joachimschork  

Music by bensound.com