modify_opts | R Documentation |
harpIO includes a number of functions for creating lists of options for, for
example, file formats and transformations. modify_opts
allows you to
change the values for given options in an already generated options list.
modify_opts(opts, ..., add_options = FALSE)
opts |
The options list to be modified. |
... |
Expressions that give new values for options in |
add_options |
If |
modify_opts
is designed to be used in a pipeline so that an options
list can easily be modified. It is particularly useful for modifying options
set via, for example, an options set in netcdf_opts
.
The input options list with modified options
# Default value for z_var is "height1" with
# options_set = "met_norway_eps"
netcdf_opts(options_set = "met_norway_eps")
# Change z_var to "height0", keeping all other
# options from options_set = "met_norway_eps"
netcdf_opts(options_set = "met_norway_eps") %>%
modify_opts(z_var = "height2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.