join_summaries {animaltracker}R Documentation

Joins two animal data frame summaries by a column and appends differences

Description

Joins two animal data frame summaries by a column and appends differences

Usage

join_summaries(
  correct_summary,
  candidate_summary,
  by_str,
  daily = FALSE,
  use_elev = TRUE
)

Arguments

correct_summary

summary data frame of reference dataset, returned by summarise_anidf

candidate_summary

summary data frame of dataset to be compared to reference, returned by summarise_anidf

by_str

column to join by as a string, null if daily=TRUE

daily

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

use_elev

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

Value

data frame of joined summaries with differences

Examples

# Join date summaries of unfiltered and filtered demo data
## Summarise unfiltered demo by date
unfiltered_summary <- summarise_anidf(demo_unfiltered_elev, Date, Latitude, Longitude, 
Distance, Course, Rate, Elevation, daily=FALSE)

## Summarise filtered demo by date
filtered_summary <- summarise_anidf(demo_filtered_elev, Date, Latitude, Longitude, 
Distance, Course, Rate, Elevation, daily=FALSE)

## Join
join_summaries(unfiltered_summary, filtered_summary, "Date", daily=FALSE)

[Package animaltracker version 0.2.0 Index]