randomWalk {wpm} | R Documentation

## Random walk of the matrix to fill

### Description

Returns the user dataframe updated after choosing randomly a well on the plate (matrix) and randomly choosing a sample ID that satisfies all the constraints.

### Usage

    randomWalk(m, toVisit, d, constraint)

### Arguments

`m` | is a matrix corresponding to the plate to be filled.
`toVisit` | contains the wells in form "A1", and contains only the wells authorized to be filled in
`d` | is the dataframe containing the data supplied by the user.
`constraint` | character string corresponding to the spatial constraint selected by the user

### Value

a dataframe corresponding to the user-supplied data. This dataframe is an updated version, where the columns 'Row' and 'Column' are filled with the coordinates of the chosen well. If no solution is found for the current selected well, then this function returns 1.

[Package wpm version 1.4.0 Index]