Learn R Programming

mpspline2 (version 0.1.9)

mpspline_conv: Convert data for splining

Description

Generate a consistent input object for splining

Usage

mpspline_conv(obj = NULL)

# S3 method for matrix mpspline_conv(obj = NULL)

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

Value

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

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.