vote_on_classifications: vote on classifications

View source: R/classification_voting.R

vote_on_classificationsR Documentation

vote on classifications

Description

Given a data.frame of EMF categories / classes, attempts to find most likely classification using a voting method. Options for output include returning *all* the categories, a *single* above a particular threshold (default = 0.66), or return the class *multiple* for those things that had multiple classes.

Usage

vote_on_classifications(
  category_list,
  return_opts = "max",
  vote_threshold = 2/3 * 100,
  exclude_votes = c("not_lipid", "unclassifiable", as.character(NA),
    "not_lipid or not_classified"),
  debug = FALSE
)

Arguments

category_list

a named list of categories for each EMF

return_opts

what to return ('max', 'all', 'single', 'multiple')

vote_threshold

what is the vote threshold for 'single'?

exclude_votes

which categories should be excluded?


rmflight/metabolomicsUtilities documentation built on Oct. 28, 2023, 6:41 p.m.