vote_categories_classes: vote on categories and classes

View source: R/classification_voting.R

vote_categories_classesR Documentation

vote on categories and classes

Description

Given a data.frame of categories, classes, and EMFs, does voting by the EMF first on the Categories, and then trims to those Classes that are part of the original Category, and does voting on the remaining Classes.

Usage

vote_categories_classes(
  categories_classes,
  emfs = "emf",
  categories = "Categories",
  classes = "Classes",
  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

categories_classes

data.frame of information

emfs

which column is EMFs

categories

which column is categories

classes

which column has classes

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?

Value

data.frame


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