View source: R/get_header_item.R
get_header_item | R Documentation |
Convenience function to extract information from a header object
as returned by read_header()
or create_header()
. Returns one item
per call.
get_header_item(header, item)
header |
LPJmL file header as returned by |
item |
Header information item to retrieve. One of |
Requested header item. Character string in case of "name" and "endian", otherwise numeric value.
create_header()
for creating headers from scratch and for a more
detailed description of the LPJmL header format.
read_header()
for reading headers from LPJmL input/output files.
## Not run:
# Read file header
header <- read_header("filename.clm")
nyear <- get_header_item(header = header, item = "nyear")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.