Learn R Programming

data.tree (version 1.1.0)

AreNamesUnique: Test whether all node names are unique.

Description

This can be useful for some conversions.

Usage

AreNamesUnique(node)

Value

TRUE if all Node$name == TRUE for all nodes in the tree

Arguments

node

The root Node of the data.tree structure to test

See Also

as.igraph.Node

Examples

Run this code
data(acme)
AreNamesUnique(acme)
acme$name <- "IT"
AreNamesUnique(acme)

Run the code above in your browser using DataLab