Merge and append

Merge

both <- merge( myleft, myright, by=c("id","workshop") )

with different names:

both <- merge( myleft,myright,
               by.x=c("id", "workshop"),
               by.y=c("subject","shortCourse")
)

See also tidyr package

Append

both <- rbind(data1, data2)

Unmatched cols

Reshape

library(tidyr)

xxx


bjornerstedt/assist documentation built on May 12, 2019, 9:26 p.m.