FLCApply: Apply a function to a subset of data

Description Usage Arguments Value Examples

Description

Partition data based on given column and apply given function on each partition

Usage

1
FLCApply(data, FUN, column)

Arguments

data

FLTable object

FUN

function to apply on each subset

column

character giving column to partition by or integer index of the column

Value

list of results from each subset

Examples

1
2
3
4
5
irisfl <- FLTable("iris","rownames")
resultList <- FLCApply(irisfl,function(x)kmeans(x,3),"Species")
print(resultList$setosa)
plot(resultList$virginica)
print(resultList$versicolor)

Fuzzy-Logix/AdapteR documentation built on May 6, 2019, 5:07 p.m.