clean_keywords: Remove duplicate studies and punctuation

Description Usage Arguments Value Examples

View source: R/import_and_clean_data.R

Description

Replaces all miscellaneous punctuation marks used to separate keywords and replaces them with a semicolon so that keywords properly separate in later steps.

Usage

1
clean_keywords(keywords)

Arguments

keywords

a character vector containing keywords to clean

Value

a data frame with keyword punctuation standardized

Examples

1
2
3
4
5
6
7
terms <- c("Picoides arcticus [Breeding season /  / ] [Nests /  / ]",
"[Forest and and woodland / Coniferous forest / ]",
"[Fire / Extreme wildfire / ] and [California / Sierra Nevada Mountains / ].")

clean_keywords(terms)

extract_terms(keywords=terms, method="tagged", min_freq = 1, ngrams = FALSE)

elizagrames/litsearchr documentation built on April 14, 2021, 3:42 p.m.