RM_duplicate: Duplicate a results managment within an object.

RM_duplicateR Documentation

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
)

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

Details

RM_duplicate duplicates a results managment within an object

Value

The original object with a duplicated results managment.

Author(s)

Marc Girondot marc.girondot@gmail.com

See Also

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

Examples

## Not run: 
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)

## End(Not run)

HelpersMG documentation built on Oct. 5, 2023, 5:08 p.m.