sc.check {monobinShiny} | R Documentation |
Special cases - check input values
sc.check(x)
x |
Numeric vector of special case values. |
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.
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")