addObjectAttrs: Set attributes to an object

addObjectAttrsR Documentation

Set attributes to an object

Description

Set attributes to an object

Usage

addObjectAttrs(object, ..., replace = TRUE)

Arguments

object

Object

...

Named parameters to convert to attributes

replace

Boolean: replace an attribute if already set?

Value

Object with attributes set

Examples

ll <- list(a="hey", b="there")
psichomics:::addObjectAttrs(ll, "words"=2, "language"="English")

nuno-agostinho/psichomics documentation built on Jan. 2, 2025, 4:10 a.m.