util_inherit_attributes: Inherit attributes from another object

Description Usage Arguments Value

View source: R/nhl_utils.R

Description

Take attributes with names specified by atrs from object src and add them as the same attributes to tgt.

Usage

1
util_inherit_attributes(src, tgt, atrs = c("url", "copyright"))

Arguments

src

object, with attributes to be inherited by tgt.

tgt

object, onto which attributes of src should be added.

atrs

character(), vector of names of attributes of src to be added to tgt.

Value

object, same as tgt with attributes added.


nhlapi documentation built on Feb. 20, 2021, 9:06 a.m.