knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(edcpR)
Please complete the following problems.
Remember:
#
). Without comments we don't know if you understand what is happening.Load in the data you will need as follows:
data(vegdata1, vegdata2, package = "edcpR")
Extract the following values from the vegdata1 dataset:
Make sure
Merge vegdata1 and vegdata2 into one data frame. Store your result in my_data_frame. Hint: the resulting dataframe has 144 rows.
Use the package "dplyr" to only select rows containing data from Grassland from your merged data frame. Store your result in my_grassland.
Save your R-script as Surname-FirstName-assignment-1.R. Upload this on Toledo before October 6th, 12:00 noon in the assignments folder!
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.