term_to_col2: Search a column to identify terms and add column

Description Usage Arguments Examples

View source: R/term_to_col2.R

Description

Takes a vector of search terms and searches the column of a data.frame. Returns named columns to the data frame with logical values.

Usage

1

Arguments

df

A data frame with the target column

col

The column to be searched

expr

A search term or vector of search terms

Examples

1
## Not run: a <- term_to_col2(sentences_country, "word", expr = c("ocean", "marine"))

poldham/oldhammisc documentation built on May 25, 2019, 11:23 a.m.