mpspline_conv {mpspline2}R 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.


[Package mpspline2 version 0.1.6 Index]