check_modes function

Check modes of objects

Check modes of objects

check_modes(..., mode_to_confirm = NULL)

Arguments

  • ...: R objects.
  • mode_to_confirm: The function will test whether each input is of this mode. For example, check_modes(a, mode_to_confirm = "numeric"), the function will check whether the object a is numeric.

Examples

check_modes(1L, mode_to_confirm = "numeric") check_modes( TRUE, FALSE, 1L, 1:3, 1.1, c(1.2, 1.3), "abc", 1 + 2i, intToBits(1L), mode_to_confirm = "numeric")