findSDGs: Identify SDGs in text

View source: R/findSDGs.R

findSDGsR Documentation

Identify SDGs in text

Description

The findSDGs function identify 17 Sustainable Development Goals and associated targets in text.

Arguments

df

Data frame

col

Column name for text to be assessed

Details

In 2015, leaders worldwide adopted 17 Sustainable Development Goals (SDGs) with 169 targets to be achieved by 2030 (https://sdgs.un.org). The framework of SDGs serves as a blueprint for shared prosperity for both people and the earth. findSDGs identifies both direct and indirect expressions of SDGs and associated targets in chunks of text. It takes a data frame with a specified column of text to process as inputs and outputs a data frame with original columns plus matched SDGs and targets.

Value

Data frame with the same information as df and 18 extra columns: 17 columns marking the number of occurrence of each of the 17 SDGs and one column match_detail listing details of specific targets.

Examples

my_text <- data.frame(my_col=c('our goal is to end poverty globally', 'this product
contributes to slowing down climate change'))
findSDGs(my_text, my_col)

caimeng2/findSDGs documentation built on June 15, 2022, 10:59 a.m.