util_attributes_to_cols {nhlapi}R Documentation

Add attributes as data frame columns

Description

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

Usage

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.


[Package nhlapi version 0.1.4 Index]