castToTemplate: Cast tbl
or data.frame
x to the types of the template
Description
Cast tbl
or data.frame
x to the types of the template
Usage
castToTemplate(x, template)
Value
object containing data of x in the class and structure of the template.
Arguments
- x
data.frame
, tbl
or data.table
- template
data.frame
, tbl
or data.table
Details
If template is a tbl
with database source, convert to an in-memory tibble with same data types instead.
Rownames might differ or get lost.