save_file: Export a cow_table or the list of parameters to a file.

Description Usage Arguments Value

Description

Export a cow_table or the list of parameters to a file.

Usage

1
2
3
4
5
save_to_csv(cows, filename, i, subdir = ".")

save_param_txt(param, filename, i, subdir = ".")

construct_filepath(filename, i = NULL, subdir = ".", ext = ".csv")

Arguments

cows

See cow_table.

filename

The file name to an output file.

i

The number of months from the start of the simulation.

subdir

Specify the path to the directory from "output" folder if you want to output a file into a different directory.

param

The parameter list used in the simulation. For more detail, see calc_param().

ext

The file extension of an output file.

Value

An output file at the specified location (save_to_csv() and save_param_txt()) or a character string indicates a file path (eg. "subdir/filename001.csv") (construct_filepath()).


fmsan51/blvibmjp documentation built on Sept. 2, 2020, 9:04 p.m.