make_copy: Duplicate an object in the global environment

Description Usage Arguments

View source: R/make_copy.R

Description

Duplicate an oject in the global environment, so that one version can be modified without losing the previous version. Useful for testing modifications to objects generated by time-consuming code.

Usage

1
make_copy(var_name, append=".old")

Arguments

var_name

character string, the name of the object to be copied.

append

character string, the text to be appended to the object's name when making the copy. Defaults to ".old".


mjdufort/miscHelpers documentation built on Sept. 24, 2018, 7:09 p.m.