Learn R Programming

permute (version 0.10-0)

set-methods: Replacement functions to set components of a permutation design

Description

These functions provide abstracted replacement of components in a permutation design such as one returned by how(). They also update the matched calls stored in the design so that stats::update() continues to work correctly.

Usage

setBlocks(object) <- value

setPlots(object) <- value

setWithin(object) <- value

setStrata(object) <- value

setNperm(object) <- value

setAllperms(object) <- value

setMaxperm(object) <- value

setMinperm(object) <- value

setComplete(object) <- value

setMake(object) <- value

setObserved(object) <- value

setRow(object) <- value

setCol(object) <- value

setDim(object) <- value

setType(object) <- value

setMirror(object) <- value

setSymmetric(object) <- value

setConstant(object) <- value

Value

object, suitably modified.

Arguments

object

An R object on which to dispatch.

value

The replacement value or object.

Author

Gavin Simpson

Details

Use these functions instead of directly modifying the underlying list, so code does not depend on permute's internal representation.

See Also

check() checks a design described by how(). See get-methods for the corresponding extractor functions.

Examples

Run this code
hh <- how()
getNperm(hh)
setNperm(hh) <- 999
getNperm(hh)

Run the code above in your browser using DataLab