flagBioRecs: Flags records based on set keywords and specified columns in...

Description Usage Arguments Details Value

Description

Flags records based on set keywords and specified columns in a data.frame

Usage

1
flagBioRecs(df, terms, searchfields = NULL)

Arguments

df

a NSSP data.frame with original column names

terms

a vector of stings and words of interest

searchfields

the index of the columns targeted for the search

Details

In the final table, each field will receive a 1 if there is a hit or a 0 otherwise. If a target column doesn't contain any of the sought terms it does not get included in the final table. It helps identify which field is the most relevant for this particular terms string.

Value

a table with the Unique_Visiting_ID as the first column and a column for each field where one or more of the terms have been found.


hmenag1/ss4weka documentation built on May 17, 2019, 4:34 p.m.