The seam a dimension package overrides when its atom layer is generated rather than enumerated. Returns one row per atom (or per atom and extra identifier, e.g. per grid instant and year).

scale_atom_pairs(x, ...)

Arguments

x

A NestedScale.

...

Method arguments: from and to (frame names of x), weight (a weight column, or NULL for the scale's default), and whatever else the dimension needs to generate its atoms – year for a calendar.

Value

A data.frame with columns from, to, w, plus any extra identifier columns the dimension carries. The extra columns must be named in the by argument of the caller.

Examples

head(scale_atom_pairs(scale_example(), "class", "group"))
#>   from to   w
#> 1   G1 G1 100
#> 2   G1 G1 200
#> 3   G2 GB 300
#> 4   G2 GB 400
#> 5   S1 GB 500
#> 6   S1 GC 600