Functions that apply expressions to input objects and return atomic vectors e.g., numeric (double), integer, character, logical.
vap_dbl: Iterate over input and return double(s)
vap_chr: Iterate over input and return character(s)
vap_lgl: Iterate over input and return logical(s)
vap_int: Iterate over input and return integer(s)
vap_dbl(.data, .f, ...) vap_chr(.data, .f, ...) vap_lgl(.data, .f, ...) vap_int(.data, .f, ...)
.data | Input object–numeric, character, list, data frame, etc.–over which elements will be iterated. If matrix or data frame, each column will be treated as an element. |
---|---|
.f | Action to apply to each element of
|
... | Other values passed to function call. |
A double vector
A character vector
A logical vector
An integer vector
#> a b c d e f g h i j k l m n o p #> "a." "b." "c." "d." "e." "f." "g." "h." "i." "j." "k." "l." "m." "n." "o." "p." #> q r s t u v w x y z #> "q." "r." "s." "t." "u." "v." "w." "x." "y." "z."#> [1] -1.400 0.255 -2.437 -0.006#> a b c d e f g h i j k l m #> TRUE FALSE FALSE FALSE TRUE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE #> n o p q r s t u v w x y z #> FALSE TRUE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE#> [1] 9 4 5 8 2 6 7 3 1 10