Learn R Programming

kStatistics (version 2.0)

MFB2Set: Convert the output of the MFB function to a vector

Description

Secondary function useful for manipulating the result of the MFB function

Usage

MFB2Set(sExpr)

Arguments

sExpr

MFB output

Value

set

output as set

See Also

MFB Set2expr

Examples

Run this code
# NOT RUN {
 
# MFB(c(3),1) generate f[3]g[1]^3 + 3f[2]g[1]g[2] + f[1]g[3]
# Convert the output of the MFB(c(3),1) to a vector using
# MFB2Set(MFB(c(5),1)). It generates the following result:
# "1" "1" "f" "3" "1"
# "1" "1" "g" "1" "3"
# "2" "3" "f" "2" "1"
# "2" "1" "g" "1" "1"
# "2" "1" "g" "2" "1"
# "3" "1" "f" "1" "1"
# "3" "1" "g" "3" "1"

MFB2Set(MFB(c(3),1))
# }

Run the code above in your browser using DataLab