Learn R Programming

yamlet (version 0.6.5)

[<-.decorated: Assign Subset of Decorated

Description

Assigns subset of decorated, retaining attributes.

Usage

# S3 method for decorated
[(x, ...) <- value

Arguments

x

decorated

...

passed to next method

Value

decorated

See Also

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

Examples

Run this code
# NOT RUN {
a <- as_decorated(as.list(setNames(letters[1:3], LETTERS[1:3])))
a[2:3] <- 'a'
str(a)
class(a)
# }

Run the code above in your browser using DataLab