set.value: Generate function to set the value of a specified row/column

Description Usage Arguments Value

View source: R/counting_and_summarizing_tables.R

Description

A helper function to build df-specific search tools. These functions are typically used in conjunction with lapply to determine if they are present in a df.

Usage

1

Arguments

id

Used during function creation to customize which df columns are used for search. This can be a vector.

X

Search term, this can be a vector

dat

a data frame with both "id" and "field" columns

field

the search column name

Value

value from field corresponding to search terms. This function can select multiple field values that are collapsed with separator to conserve dimensionality


dkrozelle/toolboxR documentation built on Sept. 22, 2018, 11:45 p.m.