View source: R/get_plants_nb.R
get_plants_nb | R Documentation |
Extracting plant number from usms.xml or new_travail.usm file data
get_plants_nb(
usms_file,
usms_list = c(),
usm_file_path = lifecycle::deprecated()
)
Use get_usms_list()
to get the list of the usm names for
an usms.xml file.
A named numeric vector of plants number per usm
# Xml case
xml_usms <- file.path(get_examples_path(file_type = "xml"), "usms.xml")
get_plants_nb(xml_usms)
get_plants_nb(xml_usms, "wheat")
get_plants_nb(xml_usms, c("wheat", "intercrop_pea_barley"))
# Txt case
txt_usm <- file.path(get_examples_path(file_type = "txt"), "new_travail.usm")
get_plants_nb(txt_usm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.