Learn R Programming

yamlet (version 0.6.5)

names<-.decorated: Assign Names of Decorated

Description

Assigns names of decorated, retaining attributes.

Usage

# S3 method for decorated
names(x) <- value

Arguments

x

decorated

value

passed to next method

Value

decorated

See Also

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

Examples

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

# }

Run the code above in your browser using DataLab