... argument for matsindf_applyR/matsindf_apply.R
matsindf_apply_types.RdThis is a convenience function that returns a logical list for the types of ...
with components named dots_present, all_dots_num, all_dots_mats,
all_dots_list, all_dots_vect``, and all_dots_char`.
matsindf_apply_types(...)
| ... | the list of arguments to be checked |
|---|
A logical list with components named dots_present,
all_dot_num, all_dots_mats,
all_dots_list, and all_dots_char.
When arguments are present in ..., dots_present is TRUE but FALSE otherwise.
When all items in ... are single numbers, all_dots_num is TRUE and all other list members are FALSE.
When all items in ... are matrices, all_dots_mats is TRUE and all other list members are FALSE.
When all items in ... are lists, all_dots_list is TRUE and all other list members are FALSE.
When all items in ... are vectors (including lists), all_dots_vect is TRUE.
When all items in ... are character strings, all_dots_char is TRUE and all other list members are FALSE.
matsindf_apply_types(a = 1, b = 2)#> $dots_present #> [1] TRUE #> #> $all_dots_num #> [1] TRUE #> #> $all_dots_mats #> [1] FALSE #> #> $all_dots_list #> [1] FALSE #> #> $all_dots_vect #> [1] FALSE #> #> $all_dots_char #> [1] FALSE #>#> $dots_present #> [1] TRUE #> #> $all_dots_num #> [1] FALSE #> #> $all_dots_mats #> [1] TRUE #> #> $all_dots_list #> [1] FALSE #> #> $all_dots_vect #> [1] FALSE #> #> $all_dots_char #> [1] FALSE #>#> $dots_present #> [1] TRUE #> #> $all_dots_num #> [1] TRUE #> #> $all_dots_mats #> [1] FALSE #> #> $all_dots_list #> [1] FALSE #> #> $all_dots_vect #> [1] TRUE #> #> $all_dots_char #> [1] FALSE #>#> $dots_present #> [1] TRUE #> #> $all_dots_num #> [1] FALSE #> #> $all_dots_mats #> [1] FALSE #> #> $all_dots_list #> [1] TRUE #> #> $all_dots_vect #> [1] TRUE #> #> $all_dots_char #> [1] FALSE #>matsindf_apply_types(a = "a", b = "b", c = "c")#> $dots_present #> [1] TRUE #> #> $all_dots_num #> [1] FALSE #> #> $all_dots_mats #> [1] FALSE #> #> $all_dots_list #> [1] FALSE #> #> $all_dots_vect #> [1] FALSE #> #> $all_dots_char #> [1] TRUE #>