Learn R Programming

lfl (version 1.4.2)

as.matrix.fsets: Convert a 'fsets' object into matrix

Description

This function converts an instance of class fsets into matrix.

Usage

# S3 method for fsets
as.matrix(x, ...)

Arguments

x

An instance of class fsets to be transformed.

...

Unused.

Value

A numeric matrix of membership degrees.

Details

This function converts an instance of class fsets into matrix. Also the vars and specs attributes are deleted.

See Also

fsets, fcut, lcut

Examples

Run this code
# NOT RUN {
ff <- fcut(runif(10), breaks=c(0, 0.5, 1), name='age')
as.matrix(ff)
# }

Run the code above in your browser using DataLab