mpspline_conv: Convert data for splining

View source: R/mpspline.R

mpspline_convR Documentation

Convert data for splining

Description

Generate a consistent input object for splining

Usage

mpspline_conv(obj = NULL)

## S3 method for class 'matrix'
mpspline_conv(obj = NULL)

## S3 method for class 'data.frame'
mpspline_conv(obj = NULL)

Arguments

obj

data.frame or matrix. Column 1 must contain site identifiers. Columns 2 and 3 must contain upper and lower sample depths, respectively. Subsequent columns will contain measured values for those depths.

Value

data frame, sorted by site ID, upper and lower depth.


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