Description Usage Arguments Value Examples
View source: R/altWrapper-tools.R
Duplicate an R object, the argument shallow controls whether to duplicate the container only or the entire object. It can be useful in defining the duplication function of an ALTREP. Please note that the function does not work with an enviroment object. It will return the same enviroment object.
1 | duplicateObject(x, shallow = FALSE)
|
x |
The object that will be duplicated. The object should not be an enviroment object. |
shallow |
Logical, shallow duplicate or not |
An object of the same type as the input
1 2 3 4 | a <- 10
b <- duplicateObject(a)
.Internal(inspect(a))
.Internal(inspect(b))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.