View source: R/goalmodel_misc.R
days_since_last_match | R Documentation |
This function calculates the number of days since the two teams played their respective previous matches.
days_since_last_match(team1, team2, dates, first_val = NA)
team1 |
Vector of team names. |
team2 |
Vector of team names. |
dates |
a vector of dates (of type Date). |
first_val |
the value used for a team's first match in the data, when there are no preceding matches. Default is NA. |
A two-column matrix with the number of days since last time each team played.
matches_last_xdays
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.