Select clustering characteristic to form the clustering data

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

cl.features(city_data, features = 'Administrative_Unit')
#> Error in as.data.frame(data): object 'city_data' not found
# works also for other datasets cl.features(iris, features = 'Species')
#> Species Sepal.Length Sepal.Width Petal.Length Petal.Width #> 1 setosa 250.3 171.4 73.1 12.3 #> 2 versicolor 296.8 138.5 213.0 66.3 #> 3 virginica 329.4 148.7 277.6 101.3