These are synthetic teaching observations. The starter imports the supplied CSV and shows its size, columns, missing values and recorded animals or groups. It does not choose a question or fit a model for your group.
Read the dictionary to understand what each row and column represents. The number of recorded rows need not equal the number of animals or groups that received separate treatment assignments or were selected for observation.
Code and executed output
The code below comes directly from the supplied R inspection script. In your instructor-provided Posit Cloud project, open starter.R and run it section by section with this case folder as the working directory. The readr and dplyr packages must be installed. The displayed code loads dplyr and calls readr::read_csv() to import the data.
library("dplyr")
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
# Student project: import and inspect the unchanged synthetic observations.# Set the working directory to this case folder, or use run-project.R from root.# readr imports the CSV; dplyr counts the recorded animals and groups.data <- readr::read_csv("data.csv")
Rows: 336 Columns: 5
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (1): group_id
dbl (4): day, temp_c, horsefly_index, shelter_hours
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# Show the number of rows and columns, six example rows, and column types.dim(data)
# Next: choose a question and submit analysis-plan.qmd in Week 10.# Create your own analysis script, using class examples for syntax where needed.
Continue with your group’s plan
Use the analysis plan to record your biological question, study design and proposed analysis before fitting the project model. Open analysis-plan.qmd in your supplied project to edit your group’s answers.