util_process_copyright: Move copyright information to attribute

Description Usage Arguments Value

View source: R/nhl_utils.R

Description

Removes the element named el from x if present and keeps the information as an equally named attribute.

Usage

1
util_process_copyright(x, el = "copyright")

Arguments

x

list(), to be processed.

el

character(1), name of the element to remove. Defaults to "copyright" as this is the intended use of the function.

Value

list, with the el element removed and added as attribute, if it is present in x. Unchanged x otherwise.


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