Description Usage Arguments Examples
View source: R/dynamics_sweq.R
take a state object from a sweq_simulate list and return a nice data frame
1 | sweq_as_df(state, field_names = c("fluid height", "rain content", "wind"))
|
state |
as in sweq_simulate$state.ts |
field |
names to assign |
1 2 3 4 5 6 | sweq.run <- sweq_simulate(1, 60, 168)
ens0 <- sweq_ens0(40, sweq.run)
state_df <- sweq_as_df(sweq.run$state.ts[1,])
ens_df <- sweq_as_df(ens0)
#test:
all.equal(ens0[,1], filter(ens_df, ensemble=='ens_1')$value)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.