Description Usage Arguments Value
View source: R/fct_solve_cell.R
This function chooses a sample randomly from among those who respect the neighborhood constraints and who have not yet been assigned to a well.
1 | solveCell(m, d, i, j, already_drawn, constraint)
|
m |
Matrix representing the plate plan. |
d |
Dataframe containing the samples to place. |
i |
Line index of the chosen well. |
j |
Column index of the chosen well. |
already_drawn |
Vector of samples already affected to wells. |
constraint |
Character. Corresponds to the neighborhood constraint mode. |
If there is no possibility to find a valid sample, the function returns an error value (1). If a sample is chosen, then this function returns two objects: * __m__ The matrix updated with the new added sample. * __already_drawn__ The vector of already placed samples updated.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.