Learn R Programming

animl (version 1.1.0)

bestGuess: Select Best Classification From Multiple Frames

Description

Select Best Classification From Multiple Frames

Usage

bestGuess(
  manifest,
  sort = "count",
  count = FALSE,
  shrink = FALSE,
  outfile = NULL,
  prompt = TRUE,
  parallel = FALSE,
  workers = 1
)

Value

dataframe with new prediction in "Species" column

Arguments

manifest

dataframe of all frames including species classification

sort

method for selecting best prediction, defaults to most frequent

count

if true, return column with number of MD crops for that animal (does not work for images)

shrink

if true, return a reduced dataframe with one row per image

outfile

file path to which the data frame should be saved

prompt

if true, prompts the user to confirm overwrite

parallel

Toggle for parallel processing, defaults to FALSE

workers

number of processors to use if parallel, defaults to 1

Examples

Run this code
if (FALSE) {
mdmanifest <- bestGuess(manifest, sort = "conf")
}

Run the code above in your browser using DataLab