interpolateR: Interpolate numerical data

View source: R/BiomechanicsFunctions.R

interpolateRR Documentation

Interpolate numerical data

Description

This is a basic procedure to interpolate numerica data into a different number of points, which is partly useful to standardize data in kinematic analyses.

Usage

interpolateR(df, n, method = 'spline', ...)

Arguments

df

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

n

An integer numver for the number of points that you want to divide your data into.

method

A character string to indicate the interpolation method, following the description in the signal::interp1() function.The 'spline' is chosen as a default.

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

Examples


x <- seq(1, 10, 1)
y <- rnorm(10, 5, 0.1)
xy <- data.frame(x,y)
interpolateR(xy, 20, method = "cubic")



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