create.fb | R Documentation |
Creates a potato and sweetpotato fieldbook with short labels or CO numbers.
create.fb(
design,
label = c("standard", "CO"),
minimal = TRUE,
add = NULL,
computation = FALSE,
crop = c("pt", "sp")
)
design |
The name of the design data frame. |
label |
Use |
minimal |
Logical, if |
add |
Additional variables to include. Only if |
computation |
Logical, if |
crop |
|
Only labels listed in function check.names
are valid.
Uppercase labels are converted to lowercase.
It returns a data frame with fieldbook design and variables.
Raul Eyzaguirre.
book <- cr.rcbd(1:20, 3, 10)$book
# Get fieldbook with minimal set of variables for potato
create.fb(book, crop = 'pt')
# Add additional variables
create.fb(book, add = c('fedw', 'zndw'), crop = 'pt')
# Get the fieldbook with CO numbers
create.fb(book, label = 'CO', add = c('dm', 'fedw', 'zndw'), crop = 'pt')
# Get fieldbook with minimal set of variables for sweetpotato
create.fb(book, crop = 'sp')
# Add additional variables
create.fb(book, add = c('bc', 'fe', 'zn'), crop = 'sp')
# Get the fieldbook with CO numbers
create.fb(book, label = 'CO', add = c('bc', 'fe', 'zn'), crop = 'sp')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.