R/filex_template_cultivars.R

Defines functions filex_template_cultivars

# Generate a template CULTIVARS section of File X
#
# @export
#
# @inheritParams filex_template
#
filex_template_cultivars <- function(CR = "FA", INGENO = "IB0001", CNAME = "",
                                     expand = FALSE){
  if(expand){
    cultivars <- expand_grid(
      CR = CR, INGENO = INGENO, CNAME = CNAME
    )
  }else{
    cultivars <- data.frame(
      CR = CR, INGENO = INGENO, CNAME = CNAME

    )
  }

  cultivars <- add_level_column(cultivars, "C")

  return(cultivars)
}

Try the DSSAT package in your browser

Any scripts or data that you put into this service are public.

DSSAT documentation built on Nov. 9, 2023, 1:08 a.m.