################################################################################ ### R BASICS WORKSHOP ### ### EXERCISE 2.3: Packages for spatial analysis. ### ### ### ### Center for Conservation and Sustainable Development ### ### Missouri Botanical Garden ### ### Website: rbasicsworkshop.weebly.com ### ################################################################################ ## OBJECTIVE ## The goal of this exercise is to start familiarizing yourself with packages ## of R designed for spatial data analysis. ## TASK 1: what packages does the "TASK VIEW" on spatial data analysis include? ## TASK 2: install the "sp" package, load it into your R session (using the ## function *library*). This is one of the most important packages for ## spatial data analysis. Later in the workshop we will see how to ## use it. For now, load one of the databases included in the ## package "sp", named "meuse.riv". Read the help page for this database. ## What does the "meuse.riv" database contain? ## TASK 3: read the first two lines under the examples section of the ## help page for the "meuse.riv" database, and create a graph that ## show the course of the river. ## TASK 4: Install the "terra" package, load it into your R session (using #E the function *library*). Now go to the package help page with ## the following code: help("terra-package") ## What is the "terra" package for? ## TASK 5: Find, at the bottom of the "terra" package help page, the ## link to the index of functions included in this package. Follow that link ## and find the function *rast*. What is this function for?