map_sdgs_weights: Map text to all SDGs

View source: R/functions.R

map_sdgs_weightsR Documentation

Map text to all SDGs

Description

Calculate the total weight for all SDGs from 1 to 16

Usage

map_sdgs_weights(df, keywords = "elsevier100", count_repeats = FALSE)

Arguments

df

Dataframe with a column 'text'

keywords

The specific data set from which to draw keywords (ex. "elsevier", "sdsn")

count_repeats

Whether or not to count repeats for the keywords

Value

Original dataframe plus 16 additional columns representing weights for SDGs 1 to 16.

Examples

map_sdgs_weights(df, keywords = "elsevier", count_repeats = TRUE)

CMUSustainability/SDGmapR documentation built on May 22, 2022, 9:27 a.m.