slapply: lapply that uses names

View source: R/short_functions.R

slapplyR Documentation

lapply that uses names

Description

A wrapper for sapply with arguments simplify = FALSE and USE.NAMES = TRUE.

Usage

slapply(X, FUN, ...)

Arguments

FUN

The function to be applied to each element of x.

...

Optional arguments to FUN.

x

A vector (atomic or list).

Value

A list with names equal to the names of x.


m20ty/matkot documentation built on July 1, 2023, 8:11 p.m.