hash-methods: Methods for dealing with state and hashes

Description Usage Arguments Note Examples

Description

Methods for dealing with state and hashes

Usage

1
2
3

Arguments

x

state or hash object

Note

Used in makeStateHash.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
state <- stateSpec(
  name = "my_display",
  sort = list(state = "desc", county = "asc"),
  filter = list(
    county = list(regex = "Ben"),
    state = list(select = c("OR", "WA")),
    meanList = list(from = 50, to = 150)
  ),
  layout = list(nrow = 2, ncol = 4),
  labels = c("county", "state")
)

state <- validateState(state, checkDisplay = FALSE)

makeStateHash(state)

Example output

Loading required package: datadr
Note: trelliscope will eventually be superseded by trelliscopejs: https://github.com/hafen/trelliscopejs
[1] "name=my_display&group=common&layout=nrow:2,ncol:4,arrange:row&sort=state:desc,county:asc&filter=county:(regex:Ben),state:(select:OR;WA),meanList:(from:50;to:150)&labels=county,state"

trelliscope documentation built on Sept. 20, 2017, 5:04 p.m.