checkParams: Check the Parameters

Description Usage Arguments Details

Description

Check the user supplied parameters and assign them to the default if they are wrong.

Usage

1
2
checkParams(params, require.len, default, null.is.fine,
  env = parent.frame())

Arguments

params

A character vector that specifies the user supplied parameters.

require.len

An integer vector that specifies the required length of each parameter.

default

A list that specifies the default of each parameter.

null.is.fine

A boolean vector to indicate whether NULL is fine for parameters.

env

An environment to use.

Details

The user supplied parameters are usually line.color, line.type, point.size, point.shape, CI.color and legend.label.

This function will check whether the required length of the parameter is met. If not, it will assign the default value to that parameter.


SMAC-Group/gmwm documentation built on Sept. 11, 2021, 10:06 a.m.