subset-.decorated: Assign Subset of Decorated

Description Usage Arguments Value See Also Examples

Description

Assigns subset of decorated, retaining attributes.

Usage

1
2
## S3 replacement method for class 'decorated'
x[...] <- value

Arguments

x

decorated

...

passed to next method

Value

decorated

See Also

Other decorated: [.decorated(), [[.decorated(), [[<-.decorated(), names<-.decorated()

Examples

1
2
3
4
a <- as_decorated(as.list(setNames(letters[1:3], LETTERS[1:3])))
a[2:3] <- 'a'
str(a)
class(a)

yamlet documentation built on July 19, 2021, 1:06 a.m.