make.map: Modify a csv with hexmap data

Description Usage Arguments

View source: R/generic.helper.fun.R

Description

This function searches for a value and replaces it with new.values. When length(new.values) > 1, sufs needs to be passed to append a suffix to the file name, otherwise the file is overwritten.

Usage

1
2
3
4
5
6
7
8
make.map(
  template,
  new.values,
  old.value,
  file.name,
  sufs = NULL,
  dir.out = NULL
)

Arguments

template

The full name of the csv map file to use as template

new.values

is the vector of values that are replaced

old.value

is the value that is searched and replaced in the csv file

file.name

A character vector with the output file name

sufs

A character vector with suffix(es)

dir.out

Path where to save the output. If NULL (default), the working directory is used


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