lapplyNames: Applies function only to named elements of a list.
Description
This is useful to clean only some columns in a list (or data.frame
or surveydata
object). This is a simple wrapper around lapply()
where only the named elements are changed.
Usage
lapplyNames(x, names, FUN, ...)
Arguments
names
character vector identifying which elements of the list to apply FUN
...
additional arguments passed to FUN