Any idea what is happening? I know it's probably running out of memory but the two tif files are only about 1GB each and I am clearing the memory of things I no longer need. This shouldn't be happening with 32GB RAM, a 40GB page file and plenty of free space on both the C and D drive. When I run the same code on smaller tiffs I have no issues at all. I'm still new to R, can anyone shed some light on what I'm doing wrong? It crashes while trying to do the merge (which runs for like 20min before giving up). Thanks.
satMax15 <- stack("D:/LiDAR/Landsat Data/For_Joe/New/Max_2015.tif")
satMed15 <- stack("D:/LiDAR/Landsat Data/For_Joe/New/Med_2015.tif")
satMax15.df <- as.data.frame(satMax15, xy=TRUE)
satMed15.df <- as.data.frame(satMax15, xy=TRUE)
rm(satMax15,satMed15)
rawData.land <- merge(satMax15.df,satMed15.df)
rm(satMax15.df,satMed15.df)
rawData.land <- rawData.land[complete.cases(rawData.land),]
save(rawData.land,file="D:/rawData_land.Rda")