json_source: JSON source object

Description Usage Format Fields Methods See Also

Description

This objects represent the basic set of data needed for defining a projection source with JSON data. It is an extesnsion of the projection_source object with some specific fields and methods related to scraping JSON data.

Usage

1

Format

An R6 class object.

Fields

json_elem

String containing the name of the JSON element in the result that identifies the data

stat_elem

String containing the name of the stats element in the JSON result if applicable

player_elem

Character vector containing the name of the player elements in the JSON result if applicable

player_cols

Named character vector used to rename the player columns in the JSON result if needed.

Methods

scrape

Scrape the data from the source based on season, week and position provided

See Also

Other source-class: html_source, projection_source, xlsx_source


MrDAndersen/ffwebscrape documentation built on May 22, 2019, 1:51 p.m.