threestep_alignment: three step replacement

Description Usage Arguments Value

View source: R/calc_3d_dist.R

Description

This function is Experimental. Replaces points greater than the acceptable distance 3 times and replaces with NA to realign and try again. At the end replaces with template data where outside of the required distance.

Usage

1
2
3
4
5
6
7
8
9
threestep_alignment(
  template,
  aligned_data,
  original_data,
  npoints,
  dist1,
  dist2,
  dist3
)

Arguments

template

The template dataset to align to

aligned_data

the data in a preliminary aligned form

original_data

the data after selecting by npoints

npoints

The number of points in the cap (to align by)

dist1

Numeric. The first distance to align at

dist2

Numeric. The second distance to align at

dist3

Numeric. The third distance to align at

Value

a dataset that has been realigned three times at different distances to replace hopefully no more than the needed number of points only.


samhforbes/digitizeR documentation built on Dec. 29, 2021, 7:17 p.m.