dot-PreserveAttributes: Reassign firstapiR attributes to a data frame.

Description Usage Arguments Details Value Examples

Description

This is an internal function. Many actions in R will strip attributes from data frames. This helper function replaces those attributes.

Usage

1

Arguments

df

A data frame that may have had its attributes removed.

att

A list containing the attributes from the data frame before the attributes were stripped. This character vector should be created by calling attribues on the original data frame.

Details

This function throws an error if the list passed via the att argument does not contain elements named local_test_data, time_downloaded, or last_modified.

Value

A data frame with the attributes local_test_data, time_downloaded, and last_modified.

Examples

1
new.df <- .PreserveAttributes(old.df)

irwinsnet/FIRST_api_R documentation built on Dec. 22, 2020, 5:12 p.m.