save_statcast: Save a statcast data object to disk

View source: R/fetch.R

save_statcastR Documentation

Save a statcast data object to disk

Description

This function saves a statcast data object (sc) to a specified location (output)

Usage

save_statcast(sc, output = NA, verbose = TRUE)

Arguments

sc

A statcast data object

output

A character string specifying PATH to which the object will be saved. The file extension determines how the file will be saved. Options include .csv for comma-separated values, and .RDS for RDS format. If output == NA, the file name will be automatically generated.

verbose

TRUE or FALSE: Whether or not to report messages.

Details

This function will write statcast data to disk, which can then be re-loaded into R with load_statcast()

Value

(nothing)

See Also

[load_statcast()]

Examples

sc <- statcast()
save_statcast(sc,'empty')

devin-AK/statcastr documentation built on Nov. 18, 2022, 1:48 p.m.