mpspline_datchk: pre-spline data checks

View source: R/mpspline.R

mpspline_datchkR Documentation

pre-spline data checks

Description

Runs a few data quality checks and makes some repairs where possible.

Usage

mpspline_datchk(s = NULL, var_name = NULL)

Arguments

s

data frame, input data for a single soil profile.

var_name

length-1 character or length-1 integer denoting the column in site in which target data is stored. If not supplied, the fourth column of the input object is assumed to contain the target data.

Value

If data passes checks it is returned unchanged. Sites with no data to spline and sites with overlapping input depth ranges return NA.


mpspline2 documentation built on April 4, 2022, 1:07 a.m.