Make a copy of an H2O frame

Syntax

    _h2oframe copy frame_from frame_to [, replace]

Description

_h2oframe copy copies an existing H2O frame on the H2O cluster to an H2O frame with a new name or to an existing H2O frame, replacing its contents. All data from frame_from are copied.

Option

replace specifies that frame_to be replaced if it already exists.

Examples

 Setup
     . sysuse auto
     . _h2oframe put, into(auto)

 Copy the auto H2O frame to a new H2O frame named auto2
     . _h2oframe copy auto auto2

 Copy an H2O frame to the existing H2O frame auto2, replacing it
     . _h2oframe copy auto auto2, replace