build_dependence_tree.cranly_network: Construct a 'cranly_dependence_tree' object

View source: R/dependence_tree.R

build_dependence_tree.cranly_networkR Documentation

Construct a cranly_dependence_tree object

Description

Construct a cranly_dependence_tree object

Usage

## S3 method for class 'cranly_network'
build_dependence_tree(
  x,
  package = Inf,
  base = FALSE,
  recommended = TRUE,
  global = TRUE,
  ...
)

Arguments

x

a cranly_network object.

package

a vector of character strings with the package names to be matched. Default is Inf which returns all available packages in x for further subsetting.

base

logical. Should we include base packages in the subset? Default is TRUE.

recommended

logical. Should we include recommended packages in the subset? Default is TRUE.

global

logical. If TRUE (default) the network summary statistics are computed on object, otherwise, on the subset of object according to package, author, directive, base, recommended.

...

currently not used.

See Also

compute_dependence_tree() plot.cranly_dependence_tree() summary.cranly_dependence_tree()

Examples


cran_db <- clean_CRAN_db()
package_network <- build_network(cran_db)
dep_tree <- build_dependence_tree(package_network, package = "PlackettLuce")
plot(dep_tree)



ikosmidis/cranly documentation built on Aug. 30, 2022, 7:55 p.m.