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 Oct. 27, 2024, 5:16 p.m.