adjustVertex {labsimplex}R Documentation

Modify the coordinates of given vertexes of a simplex

Description

Changes the coordinates of previously generated vertexes when slight differences were impossible to avoid at the moment of setting the experiment variables (e.g. small differences in mass components when preparing a mixture). This function allows the correction of the vertexes of a simplex in order to produce movements of the simplex based on the actual coordinates.

Usage

adjustVertex(simplex, newcoords, overwrite = FALSE)

Arguments

simplex

object of class smplx with the simplex information. See labsimplex

newcoords

List with elements named like the vertexes to be modified. Each element must have a vector with the actual (ordered) coordinates used in the experiment. NA values may be used to indicate unchanged coordinates

overwrite

logical argument. If TRUE, the output simplex will replace the one provided in the simplex parameter. Default overwrite = FALSE

Value

An object of class smplx with the modified simplex information.

Author(s)

Cristhian Paredes, craparedesca@unal.edu.co

Jesús Ágreda, jagreda@unal.edu.co

Examples

simplex <- labsimplex(n = 3, start = c(7, 25, 0.15),
                      stepsize = c(0.2, 5, 0.02))
adjustVertex(simplex = simplex, newcoords = list(Vertex.1 = c(7.1, NA, NA),
                                                 Vertex.3 = c(6.9, NA, 0.155)),
             overwrite = TRUE)

[Package labsimplex version 0.1.2 Index]