Learn R Programming

yamlet (version 1.2.1)

merge.decorated: Merge Decorated

Description

Preserves class for 'decorated' during merge().

Usage

# S3 method for decorated
merge(x, y, ...)

Value

class 'decorated' 'data.frame'

Arguments

x

decorated

y

passed to merge

...

passed to merge

See Also

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

Examples

Run this code
library(magrittr)
library(dplyr)
x <- data.frame(foo = 1, bar = 2)
x %<>% decorate('foo: [distance, mm]')
x %<>% decorate('bar: [height, mm]')
class(merge(x,x))

Run the code above in your browser using DataLab