unset: Unset object metadata

Description Usage Arguments Examples

Description

Removes dpkg and units attributes from an object.

Usage

1
unset(x, recursive = TRUE)

Arguments

x

Object.

recursive

(logical) Whether to process object elements.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
x = set_field(Sys.Date(), name = "test")
str(unset(x))
y = set_field(Sys.time(), name = "test")
str(unset(y))
z = set_field(TRUE, name = "test")
str(unset(z))
df <- set_resource(data.frame(x, y, z), name = "test")
str(unset(df))
l <- list(x, list(y, z))
str(unset(l))
## Not run: 
x = set_field(units2::as_units(1, "m"), name = "test")
str(unset(x))

## End(Not run)

ezwelty/dpkg documentation built on May 30, 2019, 7:19 a.m.