Learn R Programming

plyr (version 1.8.9)

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