This is an implementation of sloop::reconstruct() that users can ignore. Once sloop is on CRAN, this function will be removed and that version will be used. It currently must be exported for use in tidyquant.

reconstruct(new, old)

Arguments

new

Freshly created object

old

Existing object to use as template