Construct a Style List

Share:

Description

Construct an object of class style, a list with unique names.

Usage

1
  style(..., NULL.rm = FALSE)

Arguments

...

objects, should be named if not style objects.

NULL.rm

if TRUE, arguments of value NULL are ignored. Default: FALSE.

Details

Tagged arguments have priority from right to left, that is, if arguments with the same name occur more than once, the value of the last one is picked.

Arguments of class "style" themselves are resolved before integrating into the resulting unique list.

The class name was chosen because the main purpose for styles is to define plotting styles for the use with function splot.

Value

an object of class style, a list with uniquely named elements.

Author(s)

Ute Hahn, ute@imf.au.dk

See Also

splot

Examples

1
2
3
4
5
6
A <- style(a = 1, b = "cool", a = 3)
str(A)
B <- style(a = 2, A, b = NULL, c = list(x = 4, y = 5))
str(B)
str(style(A, B))
str(style(A, B, NULL.rm = TRUE))