16.1 Introduction

16.1.1 Goals and objectives

Get to know the frogarms dataset and learn how to calculate summary statistics using basic R functions (eg summary() ) and also with the handy tools in the dplyr.

16.1.2 Outline

  1. Load packages and data
  2. Subset unique dataset
  3. Calculate summary stats on columns
  4. Use dplyr
  5. Calculate summary stats by groups using dplyr

16.1.3 Packages

  • devtools
  • wildlifeR (from GitHub)
  • dplyr

16.1.4 Functions

  • devtools::install_github
  • wildlifeR::make_my_data2L
  • dim, nrow, ncol
  • head, tail
  • names
  • summary
  • median
  • min, max, range
  • var, sd
  • nrow, length (for sample size)
  • dplyr::summarise, dplyr::summarize
  • group_by
  • dplyr::n