fs2cs | R Documentation |
Convert fuzzy-set (fs) data to crisp-set (cs) data.
Works for both a data.frame
and a configTable
input.
fs2cs(x, cutoff = 0.5, border = "up", verbose = FALSE)
x |
A data frame or |
cutoff |
Minimum membership score required for a factor to count as instantiated in the data and to be integrated in the analysis. Value in the unit interval [0,1]. The default cutoff is 0.5. |
border |
Character string specifying whether factors with membership scores equal to |
verbose |
Logical; if |
If the input is a data frame, the output will be, too; and correspondingly for a configTable
input.
Case frequencies in an input configTable
are accounted for.
data.frame
or configTable
of type cs, depending on input.
configTable
csJob <- configTable(d.jobsecurity)
fs2cs(csJob)
fs2cs(d.jobsecurity) # data.frame
dJob1 <- d.jobsecurity[1, ]
fs2cs(dJob1) # L=0.57 --> L=1
fs2cs(dJob1, cutoff = 0.6) # --> L=0
fs2cs(dJob1, cutoff = 0.57) # --> L=1 (since border="up" by default)
fs2cs(dJob1, cutoff = 0.57,
border = "down") # --> L=0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.