scoreCatToFeat {crunch}R Documentation

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)

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

Value

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


[Package crunch version 1.30.4 Index]