NOTE: this video is from an older course, you should now use the terra package for raster manipulation. I will be posting videos on how to do this in the coming weeks.
NOTE: this video is from an older course. For the newest, course, see the following link: Complete 3-hour course - INTRODUCTION TO SPATIAL DATA IN R : bit.ly/3Vu8GQP