rfSpeciesID: Random Forest Species ID

Description Usage Arguments Value Author(s)

View source: R/rfSpeciesID.R

Description

Predict species for unknown samples based on reference samples using Random Forest.

Usage

1
rfSpeciesID(g, ref.strata = NULL, unk.strata = NULL, ...)

Arguments

g

haploid gtypes object with aligned sequences.

ref.strata

a character vector of 2 or more strata in g top use as reference samples.

unk.strata

a character vector of strata representing unknown samples.

...

arguments passed to sequenceRF and randomForest.

Value

a list with the following elements:

pred vector of species predictions.
prob matrix of species assignment probabilities.
rf the randomForest model object.

Author(s)

Eric Archer eric.archer@noaa.gov


EricArcher/geneticRF documentation built on Nov. 15, 2021, 7:22 p.m.