compare_flags: Joins and reformats two animal data frames for the purpose of...

Description Usage Arguments Value Examples

View source: R/data_analysis.R

Description

Joins and reformats two animal data frames for the purpose of flag comparison

Usage

1
2
3
4
5
6
7
8
compare_flags(
  correct,
  candidate,
  use_elev = TRUE,
  use_slope = TRUE,
  has_flags = FALSE,
  dropped_flag = NULL
)

Arguments

correct

reference data frame

candidate

df to be compared to the reference

use_elev

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

use_slope

logical, whether to include slope in comparison, defaults to true

has_flags

logical, whether correct data frame has predefined flags, defaults to false

dropped_flag

dropped flag column, must be defined when has_flags is true, otherwise null

Value

joined and reformatted data frame

Examples

1
2
3
# Join and reformat unfiltered demo data and filtered demo data

compare_flags(demo_unfiltered_elev, demo_filtered_elev)

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