func_input_checks: Initial verification of input

Description Usage Arguments Value Examples

View source: R/func_input_checks.R

Description

Internal, auxiliary functions

Usage

1
func_input_checks(data, signal, response, side_variables)

Arguments

data

is an input object that should be a data.frame

signal

is a character object that indicates input columns of data

response

is a character vector that indicates output's columns of data

side_variables

is a character vector that indicates side variables' columns of data

Value

If all initial data is valid, string "ok" is returned. Otherwise, error is given.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data=data_example1
SLEMI:::func_input_checks(data=data,signal="signal",
response="response",side_variables="sideVar")

# The following examples will give errors, because  the data has 
# inconsistent format for the analysis. Only to check the adequacy of
# initial checks. 
# data=as.matrix(data_example1)
# SLEMI:::func_input_checks(data=data,signal="signal",
# response="response",side_variables="sideVar")
# data=data_example1
# SLEMI:::func_input_checks(data=data,signal="input",
# response="response",side_variables="sideVar")

SLEMI documentation built on Feb. 22, 2021, 5:11 p.m.