scoreCatToFeat: Score similarity between a feature dataframe and categories

View source: R/geo.R

scoreCatToFeatR 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


Crunch-io/rcrunch documentation built on April 1, 2024, 1:14 a.m.