surveydata (version 0.2.3)

lapply_names: 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

lapply_names(x, names, FUN, ...)

Arguments

x

list

names

character vector identifying which elements of the list to apply FUN

FUN

function to apply.

...

additional arguments passed to FUN

See Also

Other Tools: question_order