write_vp_input: Write a VarroaPop input file from a named list or vector

Description Usage Arguments Value Author(s) Examples

View source: R/write_input.R

Description

Function to create a single input file from a set of parameters in the form of a one row dataframe, where columns are named.

Usage

1
2
3
write_vp_input(params, in_path = system.file("varroapop_files", "input",
  package = "VarroaPopWrapper"), in_filename = "vp_input.txt",
  weather_file = "Columbus", verbose = F)

Arguments

params

Named vector of VarroaPop inputs to be written to .txt file.

in_path

Directory to write vp_input.txt file to (optional).

in_filename

Filename of the written input file. Defaults to 'vp_input.txt'.

weather_file

Full path to the weather file e.g. C:/VarroaPop/weather.wea (must be .wea/.dvf/.wth) OR one of either 'Columbus' (default), 'Sacramento', 'Phoenix', 'Yakima', 'Eau Claire', 'Jackson', or 'Durham'

verbose

T/F print extra details?

Value

None... writes inputs to a .txt file in in_path for VarroaPop

Author(s)

Jeffrey M Minucci, jminucci2@gmail.com

Examples

1
2
 parameters <- c("foo"=15,"bar"=4)
 write_vp_input(parameters, in_path = "d:/path/to/inputdir")

quanted/VarroaPopWrapper documentation built on May 18, 2019, 11:28 p.m.