sc.check: Special cases - check input values

Description Usage Arguments Value Examples

View source: R/99_HELPERS.R

Description

Special cases - check input values

Usage

1

Arguments

x

Numeric vector of special case values.

Value

Returns a list of three vectors: special case input(s) converted to numeric type, number of special case input(s) that cannot be converted to numeric type (including NA, NaN and Inf) and special case input(s) that cannot be converted to numeric type.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if 	(interactive()) {
	sca.check.res <- sc.check(x = input$sc.all)
	scr.check.res <- sc.check(x = input$sc.replace)
	}
sc.check(x = "NA, NaN, Inf")
sc.check(x = "NA, abc")
sc.check(x = "NaN, abc")
sc.check(x = "Inf, abc")
sc.check(x = "9999999999, abc")
sc.check(x = "NA, NaN, Inf, 9999999999")

monobinShiny documentation built on Nov. 22, 2021, 9:07 a.m.