Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

loop_apply

Loop apply


Description

An optimised version of lapply for the special case of operating on seq_len(n)

Usage

loop_apply(n, f, env = parent.frame())

Arguments

n

length of sequence

f

function to apply to each integer

env

environment in which to evaluate function


plyr

Tools for Splitting, Applying and Combining Data

v1.8.6
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.