[Rprotobuf-yada] added merge

Romain François francoisromain at free.fr
Thu Nov 5 11:49:18 CET 2009


Hi,

I've added a merge method for protobuf messages of the same type:

 > m1 <- new( tutorial.Person, email = "francoisromain at free.fr" )
 > m2 <- new( tutorial.Person, id = 5 )
 > m3 <- merge( m1, m2 )
 > writeLines( as.character( m1 ) )
email: "francoisromain at free.fr"

 > writeLines( as.character( m2 ) )
id: 5

 > writeLines( as.character( m3 ) )
id: 5
email: "francoisromain at free.fr"

Romain

-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/BcPw : celebrating R commit #50000
|- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc
`- http://tr.im/yw8E : New R package : sos



More information about the Rprotobuf-yada mailing list