Skip to contents

Reads the Fixed/Simul sheets of a SocMo input workbook and writes them out in the native RothC .dat format via f.rothc.dataframe.2.dat(). Superseded for new work by f.rothc.xlsx.2.dataframe() (vers = 2, used by run.socmo()), kept for older-style single-sheet-pair workbooks.

Usage

f.rothc.xlsx.2.dat(
  input.xlsx.file = NULL,
  output.dat.file = "./data_out/RothC_input.dat",
  vers = 0,
  n.year.max = 20
)

Arguments

input.xlsx.file

Path to the input workbook.

output.dat.file

Path to write the RothC .dat file to.

vers

Workbook version; only 0 (Fixed/Simul sheets) is currently implemented.

n.year.max

Unused (kept for call-site compatibility).

Value

Invisibly NULL; called for its side effect of writing output.dat.file.