Learn R Programming

HelpersMG (version 6.2)

RM_duplicate: Duplicate a results managment within an object.

Description

RM_duplicate duplicates a results managment within an object.

Usage

RM_duplicate(
  x = stop("An object with results managment must be provided"),
  RM = "RM",
  RMnamefrom = 1,
  RMnameto = 2
)

Value

The original object with a duplicated results managment.

Arguments

x

The object to duplicate a results managment

RM

The name of results managment stored

RMnamefrom

The name of the results managment to be duplicated

RMnameto

The new name of the results managment

Author

Marc Girondot marc.girondot@gmail.com

Details

RM_duplicate duplicates a results managment within an object

See Also

Other Results Managment: RM_add(), RM_delete(), RM_get(), RM_list()

Examples

Run this code
if (FALSE) {
library("HelpersMG")
# Let an object of class objclass being created
obj <- list(A=100, name="My object")
class(obj) <- "objclass"
# And now I create a RM to this object
obj <- RM_add(x=obj, RMname="NewAnalysis1")
RM_list(obj)
obj <- RM_duplicate(x=obj, RMnamefrom="NewAnalysis1", RMnameto="NewAnalysis2")
RM_list(obj)
}

Run the code above in your browser using DataLab