powered by
Creates the timezero in the passed project using the passed list. Fails if a timezero with the passed timezero_date already exists.
create_timezero( zoltar_connection, project_url, timezero_date, data_version_date = NULL, is_season_start = FALSE, season_name = "" )
model_url of the newly-created timezero
A ZoltarConnection object as returned by new_connection()
ZoltarConnection
new_connection()
url of a project in zoltar_connection's projects. this is the project the new timezero will be created in
The timezero's date in YYYY-MM-DD format as documented at https://docs.zoltardata.com/fileformats/#project-creation-configuration-json
Optional data version date in the same format. Pass NULL if the timezero does not have one
TRUE if this starts a season, and FALSE otherwise
Applicable when is_season_start is true, names the season, e.g., "2010-2011"
if (FALSE) { new_timezero_url <- create_timezero(conn, "https://www.zoltardata.com/api/project/9/", "2022-11-08", "2022-11-09", TRUE, "2010-2011") }
Run the code above in your browser using DataLab