lvapply | R Documentation |
Provides a fast, vectorized alternative to lapply
for a list of atomic vectors operated on by a function whose result is the same length as its input.
lvapply(X, FUN, ...)
X |
List of atomic vectors. |
FUN |
Function to be applied to each element of |
... |
Arguments passed to |
Object of the same length as X
.
Other helper functions: capitalize_words
,
ch1903_to_wgs84
,
clean_strings
,
format_addresses
,
format_scientific_names
,
is.empty
, melt_by_listcol
,
na.remove
,
normalize_language
,
parse_scientific_names
,
quotemeta
,
replace_values_in_list
,
sp_transform
,
subset_search_results
,
unique_na
x <- list(c("a", "b"), c(), c("d"))
lvapply(x, gsub, pattern = "d", replacement = "e")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.