Learn R Programming

indonesiaFootballScoutR (version 0.1.3)

save_raw_data: Save raw scouting data

Description

Save raw scouting data

Usage

save_raw_data(df, file = NULL)

Value

If file is provided, the file path. Otherwise, NULL.

Arguments

df

A data frame containing scouting data.

file

Optional file path. If NULL, no file is written.

Examples

Run this code
df <- data.frame(
  name = "Player A",
  age = 21,
  market_value_est = 500,
  club = "Club A",
  league_country = "Indonesia"
)

tmp <- tempfile(fileext = ".csv")
save_raw_data(df, file = tmp)

Run the code above in your browser using DataLab