tidy | R Documentation |
Tidy up a hyper2 object by removing players about which we have no information
tidy(H)
H |
A |
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.
Robin K. S. Hankin
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.