tidy: Tidy up a hyper2 object

tidyR Documentation

Tidy up a hyper2 object

Description

Tidy up a hyper2 object by removing players about which we have no information

Usage

tidy(H)

Arguments

H

A hyper2 object

Details

Function tidy(H) returns a hyper2 object mathematically identical to H but with unused players (that is, players that do not appear in any bracket) removed. Players about which H is uninformative are removed from the pnames attribute.

Note that idiom pnames(H) <- foo can also be used to manipulate the pnames attribute.

Author(s)

Robin K. S. Hankin

Examples



H <- hyper2(pnames=letters)
H["a"] <- 1
H["b"] <- 2
H[c("a","b")] <- -3

pnames(H)
pnames(tidy(H))

H == tidy(H)  # should be TRUE




hyper2 documentation built on Aug. 21, 2022, 1:05 a.m.