count_sdg_weights: Count SDG keywords

count_sdg_weightsR Documentation

Count SDG keywords

Description

For a given SDG, determine the total weights of the keywords that exist in the text.

Usage

count_sdg_weights(text, sdg, keywords = "elsevier100", count_repeats = FALSE)

Arguments

text

The target text to map SDG keywords

sdg

The SDG goal we intend to check keywords for

keywords

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

count_repeats

Whether or not to count repeat weights for the keywords

Value

A number representing the total weight of words for an SDG

Examples

count_goal(text = "Poverty entails more than the lack of income and productive resources
to ensure sustainable livelihoods.", sdg = 1)

pwu97/SDGmapR documentation built on May 13, 2022, 6:03 a.m.