This is a tutorial on how to combine multiple .rds files from a folder.

Load required packages:

library(dplyr)
library(purrr)

Locate the folder containing all rds and combine them.

sst_rds <- list.files(path= "/Users/brennamei/Downloads/OISST/daily SST",
                              pattern = ".Rds", full.names = TRUE) %>%
         map_dfr(readRDS)

Show the first five rows of the combined dataframe to check.

head(sst_rds)
##       lon   lat          t  temp PEEZ PAR MBR
## 1 119.875 3.125 1982-01-02 29.67    y   n  CS
## 2 119.625 3.375 1982-01-02 29.42    y   n  CS
## 3 119.875 3.375 1982-01-02 29.58    y   n  CS
## 4 120.125 3.375 1982-01-02 29.58    y   n  CS
## 5 120.375 3.375 1982-01-02 29.48    y   n  CS
## 6 120.625 3.375 1982-01-02 29.29    y   n  CS