util_attributes_to_cols: Add attributes as data frame columns

Description Usage Arguments Value

View source: R/nhl_utils.R

Description

Take attributes with names specified by atrs from object lst and adds their value into columns with the same name in df.

Usage

1
util_attributes_to_cols(lst, df, atrs = c("url", "copyright"))

Arguments

lst

list, with attributes to be added as columns to df.

df

data.frame, onto which new columns containing attributes of lst should be added.

atrs

character(), vector of names of attributes of lst.

Value

data.frame, df with added columns.


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