setAttrFromList: Set object attributes from a list

View source: R/utils-classes.R

setAttrFromListR Documentation

Set object attributes from a list

Description

This function sets the attributes of an object based on a given list

Usage

setAttrFromList(.dt, attr, removeExtraAttrs = T)

Arguments

.dt

data.table

attr

named list of desired attributes to add to .dt

removeExtraAttrs

boolean indicating if existing attributes of .dt not included in attr should be removed.


VEuPathDB/veupathUtils documentation built on Feb. 8, 2025, 12:29 p.m.