Description Usage Arguments Value Author(s) Examples
Given a data.frame with one or multiple features as
constructed by @seealso createFeatureForBayes
and a name,
extracts the value of the feature specified by name.
1 | getValueOfBayesFeatures(dfFeature, featName)
|
dfFeature |
a data.frame for a single feature or variable
as constructed by @seealso |
featName |
the name of the feature or variable of which to obtain the value. |
the value of the feature.
Sebastian Hönel sebastian.honel@lnu.se
1 2 3 4 5 6 7 8 9 | feats <- rbind(
mmb::createFeatureForBayes(
"Petal.Width", value = mean(iris$Petal.Width)),
mmb::createFeatureForBayes(
name = "Species", iris[1,]$Species, isLabel = TRUE)
)
print(mmb::getValueOfBayesFeatures(feats, "Species"))
print(mmb::getValueOfBayesFeatures(feats, "Petal.Width"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.