Construct a Style List

Share:

Description

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

Usage

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

Arguments

...

objects, should be named if not simplist 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 "simplist" themselves are resolved before integrating into the resulting unique list.

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

Value

an object of class simplist, 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 <- simplist(a = 1, b = "cool", a = 3)
str(A)
B <- simplist(a = 2, A, b = NULL, c = list(x = 4, y = 5))
str(B)
str(simplist(A, B))
str(simplist(A, B, .NULL.rm = TRUE))