summarise_anidf: Calculates summary statistics for an animal data frame

Description Usage Arguments Value Examples

View source: R/data_analysis.R

Description

Calculates summary statistics for an animal data frame

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
summarise_anidf(
  anidf,
  by,
  lat,
  long,
  dist,
  course,
  rate,
  elev = NULL,
  use_elev = TRUE,
  daily = FALSE
)

Arguments

anidf

the animal data frame

by

column to group by, null if daily=TRUE

lat

latitude column

long

longitude column

dist

distance column

course

course column

rate

rate column

elev

elevation column, must be defined when use_elev is true, otherwise NULL

use_elev

logical, whether to include elevation in summary, defaults to true

daily

whether to group by both GPS and Date for daily summary, defaults to false

Value

data frame of summary statistics for the animal data frame

Examples

1
2
3
# Summary of demo data by date

summarise_anidf(demo, Date, Latitude, Longitude, Distance, Course, Rate, Elevation)

mathedjoe/animaltracker documentation built on Aug. 12, 2021, 7:46 a.m.