upgrade_datafile: Upgrade a 'data input file'

Description Usage Arguments Value

View source: R/upgraders.R

Description

Add (a) new column(s)

Add a column of critical soil water potential (SWPcrit) for each functional type

Add a column of total organic content (TOC) for each soil layer

Usage

1
2
3
4
5
upgrade_datafile(file, new_name, insert_after_tag, inserted_colnames)

upgrade_prodin_v10_to_v11(file, new_name = NULL)

upgrade_soilsin_v11_to_v12(file, new_name = NULL)

Arguments

file

A character string. The file path to the datafile to upgrade.

new_name

A character string. The basename of the upgraded file. If NULL then the code attempts to replace ‘vOLD’ with ‘vNEW’ in file.

insert_after_tag

A character string. A string identifying existing column(s) after which new columns are added.

inserted_colnames

A character vector. Column name(s) to be added to file.

Value

A logical value. TRUE if upgrade was successful.


Burke-Lauenroth-Lab/SoilWat_R_Wrapper documentation built on Aug. 14, 2020, 5:17 p.m.