smootheR: Smooth numerical data using a polynomial smoothing spline

View source: R/BiomechanicsFunctions.R

smootheRR Documentation

Smooth numerical data using a polynomial smoothing spline

Description

This is a basic procedure to smooth numerica data using splines, which is partly useful for kinematic analyses.

Usage

smootheR(df, method = 1, norder = 3, spar = NULL, ...)

Arguments

df

Numerical values that represent points to smooth. This could either be a vector or a data.frame.

method

An integer numver that codes for the method is based on the different options available to smooth the data, following the description in the signal::smooth.Pspline() function.

norder

An integer number that codes the order for the polynomial used for the spline, following the description in the signal::smooth.Pspline() function.

spar

An optional vector that can be provided to use custom parameters for smoothing the data, following the description in the signal::smooth.Pspline() function.

Details

These procedures follow the methodology described in Kawano et al. 2016.

References

Kawano SM, Economy DR, Kennedy MS, Dean D, Blob RW. 2016. Comparative limb bone loading in the humerus and femur of the tiger salamander Ambystoma tigrinum: testing the "mixed-chain" hypothesis for skeletal safety factors. Journal of Experimental Biology 219: 341-353. http://jeb.biologists.org/content/219/3/341


MorphoFun/kraken documentation built on July 2, 2022, 1:13 p.m.