Skip to contents

Write Standard Data to File

Usage

write_std_from_dataframe(df, stock_col, var_cols_std, file_path = "hisea.std")

Arguments

df

Data frame

stock_col

Stock column

var_cols_std

Variables to write

file_path

Output file path

Value

None

Examples

# Load baseline data
data(baseline)

# Define a temporary path
tmp_std <- tempfile(fileext = ".std")

# Export to HISEA format
write_std_from_dataframe(
  df = baseline,
  stock_col = "population",
  var_cols_std = c("d13c", "d18o"),
  file_path = tmp_std
)

# Check if file was created
file.exists(tmp_std)
#> [1] TRUE