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 Feb. 11, 2024, 11:16 p.m.