Learn R Programming

crunch (version 1.30.4)

scoreCatToFeat: Score similarity between a feature dataframe and categories

Description

Implemented using the Jaccard index, where a number closer to 1 is more similar.

Usage

scoreCatToFeat(features, categories)

Value

the Jaccard index for the values of the property given in feat_df and the vector of categories

Arguments

features

a vector of features to match (usually from a subset of the output [availableGeodataFeatures]) with a single property for a single geodatum.

categories

a vector of categories to match