st_clone: Clone an stobject

View source: R/table-object.R

st_cloneR Documentation

Clone an stobject

Description

Clone an stobject

Usage

st_clone(x)

Arguments

x

an stobject object.

Value

A copy (y) of x such that y can be modified without modifying x.

Examples

x <- st_new(stdata())
y <- st_clone(x)

y$data$STUDY <- NULL
x$data
y$data

# Get back to a regular environment
class(x) <- "environment"
class(y) <- "environment"

x
y


metrumresearchgroup/pmtables documentation built on Dec. 22, 2024, 1:34 a.m.