Learn R Programming

animaltracker (version 0.2.0)

summarise_anidf: Calculates summary statistics for an animal data frame

Description

Calculates summary statistics for an animal data frame

Usage

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

Run this code
# NOT RUN {
# Summary of demo data by date

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

# }

Run the code above in your browser using DataLab