Description Usage Arguments Details Value Author(s) Examples
Add observations to a data frame so that the design is rectangular (per field).
1 | make_design_rectangular(object, fields, rows = "ROW", ranges = "RANGE")
|
object |
A data frame with at least the columns |
fields |
Character string specifying the column name with the fields names
corresponding to the field locations in |
rows |
(Optional) Character string specifying the column name with the
ROW-coordinates in |
ranges |
(Optional) Character string specifying the column name with
the RANGE-coordinates in |
For each level of fields
, a rectangular design is created by adding
empty observations for the missing rows
and ranges
.
An extended version of the data frame object
.
Ruud Derijcker
1 2 3 4 5 6 7 | data(exampleCV)
scheme1 <- crossValidate(x=exampleCV, id="GERMPLASM", factor="LOCATION",
k=5, replication=3, seed=NULL, exclusive=TRUE,
sampling="randomByFactor",verbose=TRUE)
P2 <- data.frame(exampleCV, scheme1)
P2 <- make_design_rectangular(P2, fields="LOCATION",rows="ROW",ranges="RANGE")
head(P2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.