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

cycleList

apply() for List objects


Description

Applies the specified function to each element of the List.

Usage

.cycleList(object, ...)

## S4 method for signature 'List'
.cycleList(object, func, trm = "object", nm = NULL, ...)

## S4 method for signature 'DecisionPointList'
.cycleList(object, func, trm = "object", nm = "dp=", ...)

## S4 method for signature 'SubsetList'
.cycleList(object, func, trm = "object", nm = "Subset=", ...)

Arguments

object

The object inheriting from list to which func is applied.

...

Additional arguments to be passed to func.

func

A character. The name of the function to be called for each element of object.

trm

A character. The formal input argument name through which each element of object is passed to func.

nm

A character. The naming convention for element of the returned list or displayed in print/show calls.

Value

If func returns a value object, a list containing the value objects returned by func.


DynTxRegime

Methods for Estimating Optimal Dynamic Treatment Regimes

v4.10
GPL-2
Authors
S. T. Holloway, E. B. Laber, K. A. Linn, B. Zhang, M. Davidian, and A. A. Tsiatis
Initial release
2022-06-05

We don't support your browser anymore

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