util_inherit_attributes {nhlapi}R Documentation

Inherit attributes from another object

Description

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

Usage

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.


[Package nhlapi version 0.1.4 Index]