Learn R Programming

gRapfa (version 1.0)

contract.last.level: Contract last level

Description

contract.last.level merges all nodes at the last level of a sample tree or other APFA igraph object.

Usage

contract.last.level(G)

Arguments

G
G is a sample tree or other APFA igraph object.

Value

An APFA igraph object.

Examples

Run this code
library(gRapfa)
data(Wheeze)
G <- st(Wheeze)
G.c <- contract.last.level(G)
plot(G.c)

Run the code above in your browser using DataLab