MATH 315 Homework 02

Due 2025-09-10 by 11:59pm

  1. Install the package palmerpenguins, if you have not already. From the menu bar click Tools > Install Packages..., and then copy and paste or type out palmerpenguins. Then click install.

  2. Create a new and empty Quarto document. In the first code chunk, load the library palmerpenguins and put the following code

penguins <- palmerpenguins::penguins
  1. In the Console run the following code.
?penguins # help file for dataset about penguins
  1. Using the help file for the penguins dataset or R code, answer the following questions.

    • What are the observations?
    • How many observations are there?
    • How many variables are there?
    • What types are the variables?
  2. In the Section Data Collection of the slides Introduction to Data, find the slide named Using a Computer to Sample. Copy and paste the code from that slide into your homework.

  3. In the Section Experimental Design of the slides Introduction to Data, find the slide named Experiments, homework 02. Answer the questions on that slide in your homework.