check_columns: Check for the presence of named columns

Description Usage Arguments Value

View source: R/plot_drp.R

Description

Check for the presence of named columns

Usage

1
check_columns(which_names, input, input_name, function_name)

Arguments

which_names

Column names to check, e.g. c("peaks", "genes")

input

The names() of this will be checked.

input_name

Name of the input, e.g. "start_params" just to make it identifiable if an error message is returned.

function_name

Name of function for which this test is carried out. Again, just to make the returning error message a bit more readable. This helps with debugging if you're wrapping many functions within each other.

Value

Returns an error and stop signal if entries of which_names are missing in the input.


evanbiederstedt/sandbox documentation built on May 26, 2019, 12:31 p.m.