occupancy_to_human: Convert the Occupancy Matrix to Human-Readable Format

Description Usage Arguments Value Author(s) Examples

Description

Auxiliary function to convert the occupancy matrix.

Usage

1
occupancy_to_human(x, to=c("", "<", ">", "v", "^"))

Arguments

x

A numeric vector or matrix consisting of the numbers 0 to 4 only; typically an occupancy matrix.

to

A character vector of length 5 to which the numbers 0 to 4 are mapped.

Value

occupancy_to_human() returns an object of the same type as x but re-encoded in the values of to.

Author(s)

Marius Hofert

Examples

1
2
3
4
5
info <- unfold(nVars=4, n2dcol=2) # unfold information for 4 variables
occ <- info$occupancy # occupancy matrix
occupancy_to_human(occ)
occupancy_to_human(occ, to=c("", "l", "r", "d", "u"))
occupancy_to_human(occ, to=c("", "-", "-", "|", "|"))

zenplots documentation built on May 2, 2019, 4:34 p.m.