Movatterモバイル変換


[0]ホーム

URL:


Using the Squiggle API

library(fitzRoy)library(dplyr)

Squiggle Data

You can access data from theSquiggle API directly with thefetch_squiggle_data. This allows direct access to theSquiggle API.

Note that we also provide some helper functions that map more closelyto ourfetch_ functions such asfetch_ladder_squiggle.

Queries

Full instructions for constructing queries can be found atSquiggle API. One of thefollowing must be provided to thequery argument.

Optional Arguments

Optional arguments can then be supplied based on the query.

For example,games takes the following optionalarguments. *year - Year *round - Round *game - Game ID *complete - Percent of gamecomplete

These can be supplied as named arguments after the query. Forexample, to return games from just 2020, we would use the following.

fetch_squiggle_data(query ="games",year =2020)

Examples

Teams

Fetch info about one or more AFL teams.

fetch_squiggle_data("teams")

Games

Fetch info about one or more games.

fetch_squiggle_data(query ="games",year =2020)

Sources

Fetch info about one or more computer models.

# You can get the sourcesfetch_squiggle_data("sources")

Tips

Fetch info about one or more tips made by computer models.

# Get all tipsfetch_squiggle_data("tips")

We can just look at one particular round.

# Get` just tips from round 1, 2018fetch_squiggle_data("tips",round =1,year =2018)

Standings

Fetch info about team standings at a point in time, i.e. theladder.

fetch_squiggle_data("standings",year =2020,round =1)

Ladder

Fetch info about one or more projected ladders generated by computermodels. For the actual ladder, see standings instead.

fetch_squiggle_data("ladder",year =2019,round =15,source =1)

PAV

Fetch info about players using HPN Footy’s Player ApproximateValue.

fetch_squiggle_data("pav",firstname ="Dustin",surname ="Martin",year =2017)

[8]ページ先頭

©2009-2025 Movatter.jp