View source: R/function_prepare.R
| stat_segm | R Documentation | 
stat_segm calculates statistics of a given segmentation : mean and
variance of the different states. it also creates standard objects for plot.
stat_segm(
  data,
  diag.var,
  order.var = NULL,
  param = NULL,
  seg.type = NULL,
  nseg
)
data | 
 the data.frame with the different variable  | 
diag.var | 
 names of the variables on which statistics are calculated  | 
order.var | 
 names of the variable with which states are ordered  | 
param | 
 parameters of output segmentation  | 
seg.type | 
 either 'hybrid' or 'dynprog'  | 
nseg | 
 number of segment chosen  | 
a list which first element is a data.frame with states of the different segments and which second element is a data.frame with mean and variance of the different states
## Not run: 
#res.segclust is a result of a segmentation-clustering algorithm
param <- res.segclust$param[["3 class"]]
nseg = 10
out <- stat_segm(data, diag.var = c("dist","angle"),
 order.var = "dist", param = param, nseg=nseg, seg.type = "segclust")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.