tabulate_sdg_weights: Tabulate SDG keyword weights

tabulate_sdg_weightsR Documentation

Tabulate SDG keyword weights

Description

Tabulate all SDG keyword weights that exist in a given text for a given goal.

Usage

tabulate_sdg_weights(
  text,
  goal_num,
  keywords = "elsevier100",
  count_repeats = FALSE
)

Arguments

text

The target text to check SDG keywords

goal_num

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 repeats for the keywords

Value

A vector of weights for keywords representing a particular SDG

Examples

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

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