Data
Data for this lesson comes from the National Ecological Observatory Network - available on FigShare as four parts:
Once you click on them they will be automatically downloaded to your default download directory.
Software
R is a popular language for scientific computing, and great for general-purpose programming as well.
R
Packages for this workshopDownload and install RStudio.
Remember to download and install R
first.
From the R
prompt, type:
install.packages(c("sf", "raster", "rgdal", "rasterVis"))
Use the Help menu and its options when needed.
We are going to follow the instructions provided here to set up a new RStudio Project for the remainder of this lesson. Let’s proceed as follows:
A key advantage of an RStudio Project is that whenever we open this project in
subsequent RStudio sessions our working directory will always be set to the
folder r-geospatial.
Let’s check our working directory by entering the following into the R console:
getwd()
R should return your/path/r-geospatial
as the working directory.
Now we want to move the data that we downloaded above into a subdirectory
inside r-geospatial
.
data
inside our working directory.data
directory.Once you have completed moving the data across to the new folder, your data directory should look as follows:
data/
NEON-DS-Airborne-Remote-Sensing/
NEON-DS-Landsat-NDVI/
NEON-DS-Met-Time-Series/
NEON-DS-Site-Layout-Files/
NEON-DS-Airborne-Remote-Sensing.zip
NEON-DS-Landsat-NDVI.zip
NEON-DS-Met-Time-Series.zip
NEON-DS-Site-Layout-Files.zip