type_checks | R Documentation |
Misc/useful type checks to prevent duplicated code
is.scalar(x)
is.scalar_or_null(x)
is.numeric_or_null(x)
is.character_or_null(x)
is.logical_or_null(x)
is.df_or_null(x)
is.list_or_null(x)
is.atomic_nan(x)
is.irregular_list(x)
is.bad_for_calcs(x, na.rm = FALSE)
any_bad_for_calcs(x, ..., na.rm = FALSE)
all_good_for_calcs(x, ..., na.rm = FALSE)
is.bad_for_indexing(x)
is.good_for_indexing(x)
is.bad_and_equal(x, y)
is.bad_for_calcs(x, na.rm = FALSE)
is.good_for_calcs(x, na.rm = FALSE)
is.null_or_na(x)
x |
object to be tested |
na.rm |
If true, NA values aren't considered bad for calculations |
... |
Values to be testes |
y |
object to be tested |
a logical value
Steven Nydick, steven.nydick@kornferry.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.