Skip to contents

just keep vibing. Apply a function to each element of a vector

Usage

vibing(.x, .f, ..., .progress = FALSE)

Arguments

.x

a list or atomic vector

.f

function to apply

...

arguments passed to .f

.progress

show progress bar?

Value

a vector the same length as .x

Examples

{
    z <- list(x = 1:5, y = 6:10)
    vibing(z, mean)
}
#> $x
#> [1] 3
#> 
#> $y
#> [1] 8
#>