merge_2soils: Merge two soil input datafiles

Description Usage Arguments Value

View source: R/Soils_Functions.R

Description

Merge datafiles from two soil data sources (source 1 overrides source 2) and choose some or none of the variables to come from one source only.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
merge_2soils(
  fmaster,
  fmaster1,
  fmaster2,
  fslayer,
  fslayer1,
  fslayer2,
  fstexture,
  fstexture1,
  fstexture2,
  var_from2 = NULL
)

Arguments

fmaster

A character string. Path to the target master file.

fmaster1

A character string. Path to master file derived from extracting from soil data source 1

fmaster2

A character string. Path to master file derived from extracting from soil data source 2

fslayer

A character string. Path to the target soil layer structure file.

fslayer1

A character string. Path to soil layer file derived from data source 1

fslayer2

A character string. Path to soil layer file derived from data source 2

fstexture

A character string. Path to the target soil texture input file.

fstexture1

A character string. Path to soil texture file derived from data source 1

fstexture2

A character string. Path to soil texture file derived from data source 2

var_from2

A vector of character strings. Variables of the soil texture file, which will be take values from source2 if available even if source1 is available

Value

A logical value. This function is called for its side effects, i.e., storing updated/new files to fmaster, fslayer, and fstexture.


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