str_add_case: Update a character vector case according to stopwords.

Description Usage Arguments Value Examples

View source: R/language.R

Description

Update a character vector case according to stopwords.

Usage

1
str_add_case(string, drop = NULL, language = "fr")

Arguments

string

Input character vector.

drop

Stop words to drop.

language

Stop word language.

Value

A character vector.

Examples

1
2
3
4
5
6
7
8
caractr::str_add_case(c("boulevard D'argonne", "1 rue descartes"))

# An example with a dropped word
caractr::str_add_case(c("boulevard D'argonne", "1 rue descartes"), drop = "rue")

# An English example
caractr::str_add_case(c("GENETICS AND IMMUNOLOGY OF PARASITIC DISEASES",
  "RESEARCH INSTITUTE  IN HEALTH"), language = "en")

stephLH/caractr documentation built on May 13, 2020, 1:53 p.m.