mpspline_est1: Estimate spline parameters

View source: R/mpspline.R

mpspline_est1R Documentation

Estimate spline parameters

Description

Estimate key parameters for building a mass-preserving spline across a single soil profile

Usage

mpspline_est1(s = NULL, var_name = NULL, lam = NULL)

Arguments

s

data.frame containing a single profile's worth of soil info

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.

lam

number; smoothing parameter for spline. Defaults to 0.1.

Value

A list of parameters used for spline fitting.


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