| make_design | R Documentation |
This is a function to easily input experimental design elements for later merging with read data
make_design(
nrows = NULL,
ncols = NULL,
block_row_names = NULL,
block_col_names = NULL,
block_name_header = "block_name",
output_format = "tidy",
wellnames_numeric = FALSE,
wellnames_sep = "",
wellnames_colname = "Well",
colnames_first = FALSE,
lookup_tbl_start = 1,
pattern_split = "",
...
)
nrows, ncols |
Number of rows and columns in the plate data |
block_row_names, block_col_names |
Names of the rows, columns of the plate blockmeasures data |
block_name_header |
The name of the field containing the
|
output_format |
One of For easy merging with tidymeasures, leave as default of 'tidy'. For human-readability to confirm design is correct, choose 'blocks' or 'blocks_pasted'. For writing to block-shaped file(s), choose 'blocks' or 'blocks_pasted'. |
wellnames_numeric |
If If If |
wellnames_sep |
A |
wellnames_colname |
Header for newly-created column containing the
well names, when |
colnames_first |
When wellnames are created for
|
lookup_tbl_start |
Value in the lookup table for the split pattern values
that corresponds to the first value in the Lookup table by default is
|
pattern_split |
character to split pattern elements provided in
|
... |
Each
|
Note that either nrows or block_row_names must be provided
and that either ncols or block_col_names must be provided
Depends on output_format:
If output_format = "blocks", a list of data.frame's
where each data.frame is block-shaped containing the
information for a single design element
If output_format = "blocks_pasted", a single
data.frame containing the paste-ed information
for all design elements
If output_format = "wide", a wide-shaped data.frame
containing all the design elements
If output_format = "tidy", a tidy-shaped data.frame
containing all the design elements
make_design(nrows = 8, ncols = 12,
design_element_name = list(c("A", "B", "C"),
2:7,
2:11,
"112301",
TRUE))
## To be reminded what arguments are needed, use make_designpattern:
make_design(nrows = 8, ncols = 12,
design_element_name = make_designpattern(
values = c("A", "B", "C"),
rows = 2:7,
cols = 2:11,
pattern = "112301",
byrow = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.