R/bayesFeature.R
getValueKeyOfBayesFeatures.RdGiven a data.frame with one or multiple features as
constructed by @seealso createFeatureForBayes and a name,
extracts the type of the feature specified by name. Note that this
is only used internally.
getValueKeyOfBayesFeatures(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 type. |
the (internal) type of the feature.
feats <- rbind( mmb::createFeatureForBayes( "Petal.Width", value = mean(iris$Petal.Width)), mmb::createFeatureForBayes( name = "Species", iris[1,]$Species, isLabel = TRUE) ) print(mmb::getValueKeyOfBayesFeatures(feats, "Species"))#> [1] "valueChar"#> [1] "valueNumeric"