bite_variation: Bite variation tester

Description Usage Arguments Value Author(s) Examples

Description

This function alerts the user to individuals with highly (or no variabality) variable max bite forces which may indicate an error in the measurment process. This uses the bite.summary dataframe generated from the file_cleaner function. If choosen this also will produce boxplots of individuals' max bite forces and indicate the number of bites an individual produced.

Usage

1
bite_variation(bite.summary, var.threshold = 2, to_plot = TRUE)

Arguments

bite.summary

The bite summary dataframe produced by file_cleaner.

var.threshold

The user defined number of standard deviations, above which the user should be notified.

to_plot

Logical, should a plot be produced?

Value

Returns a warning if any individuals fall above the threshold or are 0. Will also return a plot if plot == T.

Author(s)

Michael Rivera

Examples

1
2
3
4
5
6
7
8
9
#Use the file_cleaner function to create a bite.summary dataframe

example_file_path <- system.file("extdata", package = "AntBite")
list.files(example_file_path)
setwd(example_file_path)
output <- file_cleaner(folder = example_file_path, size_data = TRUE, size_file = "test_size_data.xlsx")

bite.summary <- output$bite.summary
bite_variation(bite.summary, var.threshold = 2, to_plot = TRUE)

mdriver3/AntBite documentation built on May 20, 2019, 8:49 a.m.