Cast tbl to class of template
castFromTbl(tbl, template)
tbl
template
tabular object like data.frame or data.table or tbl.
data.frame
data.table
tbl cast to the type of template
Jasper Schelfhout