If you order your assignment right now, you will be eligible for a great discount.

In this exercise, you will be using a dataset called Iris that is built into R.

In this exercise, you will be using a dataset called Iris that is built into R.

In this exercise, you will be using a dataset called Iris that is built into R. R has several datasets available, but the Iris dataset is a very popular and can be used for several data exploration scenarios.
To load the iris dataset into R, you will want to write the following command:
library(datasets)
data(iris)
Create a new R markdown document.
Add a title to the document, along with your name.
Add a level 1 header that provides a name for the iris analysis.
Add a code chunk that assigns the iris dataset to a new variable (iris is included in the R environment). Make sure this code chunk is visible in the document.
Add a level 2 header that states ‘Average Sepal Length by Species’
Using dplyr, group the dataset by species, and provide the average sepal length. Include the code and the results in the document.
Add a code chunk that calls ggplot2 library, but do not include it in your presentation.
Add a level 2 header that states ‘Visualizations’
Using a combination of histograms and box plots, visualize the differences in sepal length, sepal width, petal length, and petal width between the species. Set your code to be displayed in the document.
Under the visualizations, write a brief paragraph describing the differences between the species.
Submission InstructionsFor all assignments in this course, you must export the script or Markdown file to PDF. All submissions must include a PDF that includes your code and output. You are welcome to include your script or a link to GitHub or another external repo, but you must also include a PDF at a minimum. No zip files are accepted either.

Default image
admin
Articles: 24945

Quick Quote

QUICK QUOTE