AE 11: Iterating in R
Application exercise
Packages
We will use the following packages in this application exercise.
- {tidyverse}: For data import, wrangling, and visualization.
- {palmerpenguins}: For the
penguins
dataset - {rvest}: For scraping HTML files.
- {robotstxt}: For verifying if we can scrape a website.
Part 1: Iterating over columns
Your turn: Write a function that summarizes multiple specified columns of a data frame and calculates their arithmetic mean and standard deviation.
# add code here
Part 2: Data scraping
This will be done in the iterate-cornell-review.R
R script. Save the resulting data frame in the data
folder.