add_dependency_to_fields: Add an additional dependency to certain columns

Description Usage Arguments Value

View source: R/add_dependency_to_fields.R

Description

This function takes a dependency map (these_dependencies), looks for fields #' that match a particular string pattern (field_match) and adds a new dependency (new_dependency) to the column for manual dependencies (param_dependencies_manual). If there is nothing there, the new dependency becomes the whole dependency. Any columns that are updated will be marked as amended in the dependency map tibble.

Usage

1
2
3
4
5
6
add_dependency_to_fields(
  these_dependencies,
  field_match,
  new_dependency,
  verbose = FALSE
)

Arguments

these_dependencies

A dependency map

field_match

A string pattern that will identify the columns to update

new_dependency

The new dependency to add

verbose

Whether informative messages should be printed (default = FALSE)

Value

An updated dependency map.


LisaHopcroft/CTutils documentation built on Oct. 7, 2021, 11:08 p.m.