Learn R Programming

animaltracker (version 0.2.0)

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

Description

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

Usage

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

Run this code
# NOT RUN {
# Join and reformat unfiltered demo data and filtered demo data

compare_flags(demo_unfiltered_elev, demo_filtered_elev)
# }

Run the code above in your browser using DataLab