Skip to content

Latest commit

 

History

History
140 lines (77 loc) · 5.01 KB

README.md

File metadata and controls

140 lines (77 loc) · 5.01 KB

 # hyenaR course material 

This repository contains course material for teaching an introduction to the hyenaR package created to work with data from the Ngorongoro Hyena Project. Links for all course slides are provided below. For teachers, original source material for generating slides (.qmd files) are available in the /source folder of the repository.

NOTE: This repository does not contain any of the hyena data needed to run the code.


An introduction to hyenaR. Learn about how the Hyena Project data workflow is structured and the grammar of hyenaR.


A practical example of hyenaR. Use hyenaR to extract reproductive success data for males.


Introduce new hyenaR functions: create_id_starting.table(), fetch_id_rank(), and reshape_row_date.seq().

Homework: Find the oldest individual in each main clan on 2000-01-01


Solutions for homework from Lesson 3. Introduce the {lubridate} and {tidyr} packages.

Homework: Find the average lifespan of uncensored adults.


Solutions for homework from Lesson 4.

Homework: Count annual sightings of jackal species.


Solutions for homework from Lesson 5. Recap what we've done so far.


Discussing the 'overlap' argument in hyneaR in detail. How to deal with NAs in your data.


Introduce new hyenaR version v0.9.99994. Changes to relatedness functions, create_id_starting.table(), and adding functions for weather data.


Introduce new hyenaR version v0.9.99994. Changes to relatedness functions, create_id_starting.table(), and adding functions for weather data.

Homework: Identify the most productive year (most births) for each clan.


Introduce create_sample_starting.table(). Introduce the {stringr} package and how to work with text data.


More detail about group_by() and summarise() from the {dplyr} package. Consider different ways to count data. Recap how to deal with censored data.


A practical application of hyenaR: Generate a list of females and males of main clans with offspring that survived to adulthood (2y), in descending order, and with the information of whether the number of offspring is censored or not. Introduce the {waldo} package to compare objects in R.


Solution for homework from Lesson 10. Introduce {skimr} package to inspect data.


A practical application of hyenaR: List of all adults of main clans with their highest lifetime rank. Include some basic plotting with {ggplot2}.


A practical application of hyenaR: Extract monthly female reproduction and clan size for Airstrip. Build a model to study the relationship.


Running for loops in R. Introduce the {purrr} package that can be used for looping in the tidyverse.


Building and debugging functions in R.