copy.results: Copy 'HexSimR' results

Description Usage Arguments Details

View source: R/copy.results.R

Description

This function is deprecated. Please see '?compress.log' to reduce project's size

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
copy.results(
  path.results,
  out = getwd(),
  copy.invasion = TRUE,
  inv.name = "Invasion.front.xlsx",
  Pext = TRUE,
  comp.census = TRUE,
  comp.move = TRUE,
  move.name = "SSMD_move.xlsx",
  comp.ranges = TRUE,
  ranges.name = "SSMD_ranges.xlsx",
  plots = TRUE,
  scen.results = TRUE,
  scenarios = "all"
)

Arguments

path.results

The path to the 'Results' folder

out

The directory where to save the results

copy.invasion

Whether to copy data saved from invasion.front

inv.name

The name of file with results from invasion.front

Pext

Whether to save results from Pext

comp.census

Whether to copy data saved from SSMD_census

comp.move

Whether to copy data saved from SSMD_move

move.name

The name of file with results from SSMD_move

comp.ranges

Whether to copy data saved from SSMD_ranges

ranges.name

The name of file with results from SSMD_ranges

plots

Whether to copy plots

scen.results

Whether to copy results saved in scenarios' folders

scenarios

A character vector with the scenarios to be processed or "all"

Details

This function is used to copy/back up HexSimR results maintaining the same directory structure.

copy.results will duplicate all folders present within the 'Results' folder when scen.results=TRUE. Note that only the first level of results will be copied (i.e. no individual replicate results are copied). All .xlsx files present in scenarios' folders will be copied (even those with manually modified names) assuming that these are results to keep. These include genetic mean distances.

It assummes that file names of plots start with "plot" as for HexSimR default. If exists, the file "gen.plot.data.csv" (if the name was not modified) will be copied as part of this option because considered part of the plot files.

With comp.census, comp.move, and comp.ranges can be set whether to copy results of statistical comparisons (output from SSMD_census, SSMD_move, SSMD_ranges).

The SSMD file generated with Pext is copied automatically (if exists and if the name was not modified), along with the other results from this function, when the option Pext=TRUE is selected.

When comp.census=TRUE, all files whose name starts with "SSMD_census" will be copied (note that if some file names has been modified and does not start with "SSMD_census" anymore, these files will not be copied).


carlopacioni/HexSimR documentation built on Nov. 28, 2020, 4:12 p.m.