View source: R/cropr_bind_split.R
bind_rows | R Documentation |
Bind simulations list with different situations into a single dataframe
bind_rows(..., .id = NULL)
... |
Simulation outputs in Cropr format, i.e. a named list of
|
.id |
Name of the column in the new dataframe that identifies the origin
of each row. If |
If ...
is not of class cropr_simulation
, it uses the regular
function from dplyr
. See e.g. SticsRFiles::get_sim()
for an example
output format.
A single data.frame or tibble binding the rows of all data.Frames or tibbles included in sim
You can perform the same for observations with the following:
bind_rows(obs, .id = "situation")
.
split_df2sim
## Not run:
# Importing an example with three situations with observation:
workspace <- system.file(file.path("extdata", "stics_example_1"),
package = "CroPlotR"
)
situations <- SticsRFiles::get_usms_list(
usm_path =
file.path(workspace, "usms.xml")
)
sim <- SticsRFiles::get_sim(workspace = workspace, usm = situations)
bind_rows(sim)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.