Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

RProtoBuf (version 0.1-0)

merge-methods: Merge two messages of the same type

Description

Merge two Message objects of the same type.

Arguments

Errors

An error of class "IncompatibleType" is thrown if the two messages are not of the same message type.

Examples

Run this code
m1 <- new( tutorial.Person, email = "francoisromain@free.fr" )
m2 <- new( tutorial.Person, id = 5 )
m3 <- merge( m1, m2 )
writeLines( as.character( m1 ) )
writeLines( as.character( m2 ) )
writeLines( as.character( m3 ) )

Run the code above in your browser using DataLab