Learn R Programming

yamlet (version 1.2.1)

names<-.decorated: Assign Names of Decorated

Description

Assigns names of decorated, retaining attributes.

Usage

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

Value

decorated

Arguments

x

decorated

value

passed to next method

See Also

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

Examples

Run this code
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