In this worksheet, we will read and explore the data that were collected during the field campaign on Fogo 2015. After completing this worksheet you should be able to read tables into R and access individual information from the data.
R Studio — we recommend to use R Studio for (interactive) programming with R. You can download R Studio from the official web page.
During September 2015, an ecological field survey has been carried out on Fogo island. The survey encompassed 115 plots of 5 meters by 5 meters on which data on agricultural and natural vegetation as well as on diversity has been collected.
During the following worksheets, selected aspects of this data set are analyzed. Later worksheets will build on the general land use/ land cover attributes of the field data. They will serve as “training data” for a land cover classification, though they will have to be complemented by remotely derived training sites.
In this worksheet, we will read and explore the data that were collected during the field campaign on Fogo 2015
Please download the field survey data and write an R script which reads the content of the data into a data frame. Check if everything is ok by looking at the first few lines of the data once the reading has been completed and get a comprehensive summary of the data set using the summary() function.
The R script you have just created will form the basis for the upcoming worksheets, so make sure you save it. For simplicity, please name your script files after the worksheet (i.e. “W01-2.R” in this case).
Please perform the following task as a finger exercises on accessing data subsets inside a data frame: