write_entry: Write an entry to a csv file

Description Usage Arguments Value See Also

View source: R/write_entry.R

Description

Verify an entry and then write it to a csv file

Usage

1
write_entry(entry, path, team_name, week = NULL, challenge = "ilinet")

Arguments

entry

An entry data.frame

path

A character string specifying a directory for the file

team_name

A character string specifying the team name

week

A scalar numeric indicating the week number or NULL (default). If NULL, the week will automatically be determined from the current date.

challenge

one of "ilinet", "hospital", or "state_ili", indicating which forecasting challenge the entry is for. Default is "ilinet"

check_week

A logical value (default 'TRUE') indicating whether to check for the column forecast_week. Should be 'TRUE' if evaluating entry prior to scoring, can be 'FALSE' if evaluating entry prior to writing to disk.

Value

Invisibly returns TRUE if successful

See Also

write_valid_entry, read_entry


jarad/FluSight documentation built on Oct. 24, 2020, 9:58 p.m.