randomWalk: Random walk of the matrix to fill

Description Usage Arguments Value

View source: R/fct_random_walk.R

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

1
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.


HelBor/wpm documentation built on June 15, 2021, 4:16 p.m.