cranly (version 0.6.0)

build_dependence_tree.cranly_network: Construct a cranly_dependence_tree object

Description

Construct a cranly_dependence_tree object

Usage

# S3 method for 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

Run this code
# \donttest{
cran_db <- clean_CRAN_db()
package_network <- build_network(cran_db)
dep_tree <- build_dependence_tree(package_network, package = "PlackettLuce")
plot(dep_tree)
# }

Run the code above in your browser using DataLab