Description Usage Arguments Value Author(s) Examples
Counter operation to @seealso mmb::sampleToBayesFeatures()
.
Takes a Bayes-feature data.frame and transforms it back to a row.
1 | bayesFeaturesToSample(dfOrg, features)
|
dfOrg |
data.frame containing at least one row of the original format, so that we can rebuild the sample matching exactly the original column names. |
features |
data.frame of Bayes-features, as for example
previously created using |
data.frame the sample as 1-row data.frame.
Sebastian Hönel sebastian.honel@lnu.se
1 2 3 4 5 | samp <- mmb::sampleToBayesFeatures(dfRow = iris[15,], targetCol = "Species")
# Convert the sample (as features) back to a sample that can be, e.g.,
# appended to the data again:
row <- mmb::bayesFeaturesToSample(dfOrg = iris, features = samp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.