flattenStats | R Documentation |
Margin statitics are list valued, however, it is often useful to break them down into separate statistics for each state. In particular, this facilitates putting the data into a data.frame format for further analysis.
flattenStats(statlist)
statlist |
A named list contatining the statsitics. |
Vector valued tatistics produces by PnodeMargin
are
replaced by multiple statistics with the state name appended (after a
dot) to the variable name.
Scalar valued statistics are left as is.
A vector with the statistics. If all statistics are numeric, it will
be a numeric vector. If some are character valued (e.g.,
PnodeMode
), it will be a
character vector.
Russell Almond
PnodeMargin
, PnodeEAP
, PnodeMode
,
slist <- list("Physics_EAP"=.3,
"Physics_Margin"=c("High"=.5,"Medium"=.3,"Low"=.2),
"Physics_Mode"="High")
flattenStats(slist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.