Learn R Programming

Cluster.OBeu (version 1.2.3)

cl.features: Clustering features

Description

Select clustering characteristic to form the clustering data

Usage

cl.features(data, features = NULL, amounts = NULL, aggregate = "sum", tojson = FALSE )

Arguments

data

The input data

features

The clustering features

amounts

The amount measures of the dataset

aggregate

The function to aggregate

tojson

If TRUE the results are returned in json format, default returns a list

Value

This function returns the dataset for cluster analysis adapted to the desired features.

Details

This function adapts the dataset according to the selected dimension of the dataset and the aggregation function.

See Also

cl.analysis

Examples

Run this code
# NOT RUN {
cl.features(city_data, features = 'Administrative_Unit')

# works also for other datasets
cl.features(iris, features = 'Species')
# }

Run the code above in your browser using DataLab