Please submit this homework on Classes as both an R Markdown (Rmd) and DOCX file.
In order to create a DOCX file, you can use the ‘down arrow’ next to the Knit button, and select “Knit to Word”.
As I mentioned during our first meeting, rmarkdown is a way to incorporate text, with simple formatting, with R code chunks. Rather than spell out how to create an Rmd file here, I recommend you consult the following resources:
[last name]_ENS623_SP22_PS1.Rmd
For example,
Lammens_ENS623_SP22_PS1.Rmd
The basic R installation includes a package named datasets
that contains several different example data sets to use in R. In this problem set, we’ll work with the iris
data set. Using any of the help functions we learned in class, ?
or help.search
, find the help page for the iris data set.
# Show your code to find information on iris here
Briefly describe what these data are. What is being measured? How many measurements? Etc. Please embed your answer within these double asterisks so your answer is bold-faced.
iris
data setUse the head
, tail
, and summary
functions to investigate the iris
data set. Use the help functions (or search online) to figure out how to use these functions and what these functions return.
# Put your code here
Make at least three observations about the data and/or the data set using these functions. “Observations” can include the number of rows of data in the data set, the number of columns, the types of values in the columns, etc..
Put your three observations here.