Function to include the variables to evaluate in the fieldbook design.

fieldbook_varlist(fieldbook, varlist = NULL)

Arguments

fieldbook

Data frame with the fieldbook.

varlist

Data frame with the variables information. See examples.

Value

data frame

Details

The function allows to include the arguments in the sheet that have the information of the variables. You should include 3 columns in the sheet: {abbreviation}, {evaluation} and {sampling}. See examples. The information will be extracted automatically and deploy the list of variable for the fieldbook design. If you will be evaluate the experimental unit one time you should set 1.

Examples

library(inti) library(googlesheets4) if (gs4_has_token()) { url <- paste0("https://docs.google.com/spreadsheets/d/" , "1a82XIbTeWPC4pwvu9Zjl4qrGitGQ_B-mf3-w67VS4-Q/edit#gid=0") # browseURL(url) gs <- as_sheets_id(url) (design <- gs %>% range_read("design")) (varlist <- gs %>% range_read("varlist")) fieldbook <- design %>% inti::fieldbook_design() %>% inti::fieldbook_varlist(varlist) fieldbook }