R/calculate-statistics.R

Defines functions calculateStatistics

Documented in calculateStatistics

#' Calculate network statistics from a formula
#' @param formula A lolog formula (See \code{\link{lolog}}).
#' @examples
#' data(ukFaculty)
#' calculateStatistics(ukFaculty ~ edges + mutual + triangles)
calculateStatistics <- function(formula) {
  createCppModel(formula, cloneNet = FALSE)$statistics()
}

Try the lolog package in your browser

Any scripts or data that you put into this service are public.

lolog documentation built on July 1, 2021, 9:09 a.m.