count_sdgs_weights: Count SDGs keywords

View source: R/functions.R

count_sdgs_weightsR Documentation

Count SDGs keywords

Description

Determine the total weights of all SDGs keywords that exist in a given text for a given goal.

Usage

count_sdgs_weights(text, keywords = "elsevier2", count_repeats = FALSE)

Arguments

text

The target text to check SDGs keywords

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

A number representing the weight of words for all SDGs

Examples

count_sdgs_keywords("Poverty entails more than the lack of income and productive resources
to ensure sustainable livelihoods.")

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