lap {dapr} | R Documentation |
Function(s) that apply expressions to input data objects and return lists.
lap: Iterate over input and return list(s)
lap(.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 the elements which are to be iterated over. |
.f |
Function to apply to each element of input object. This can be
written as a single function name e.g., |
... |
Other values passed to function call. |
A list
Other lap: ilap
## return string list lap(letters, ~ paste0(.x, ".")) ## return list of columns lap(mtcars[1:5, ], as.character)