balancedGrpDistrib: Makes a balanced distribution of the elements between several...

Description Usage Arguments Value

View source: R/fct_balanced_distribution.R

Description

This function makes it possible to distribute the samples equitably on several plates, taking into account the numbers in the groups (if there are any). This means that, for example, if 2 plates are to be filled, then 50 generally, all the plates are assigned the same number of elements. When the numbers do not allow it (in particular when the total number of elements to be allocated is not a multiple of the number of plates), there will be a slight difference in the number of samples on the plates.

Usage

1
balancedGrpDistrib(d, nb_p, df_max_size)

Arguments

d

the user dataframe

nb_p

the number of plates to fill

df_max_size

the maximum number of samples that can be placed on the current plate

Value

a list of dataframes each corresponding to a plate to fill.


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