prepareSplineVariables: Prepare data for smoothed spline fitting.

View source: R/localization.R

prepareSplineVariablesR Documentation

Prepare data for smoothed spline fitting.

Description

Prepare data for smoothed spline fitting.

Usage

prepareSplineVariables(
  df,
  CC = TRUE,
  handvar = "hand",
  locvar = "tap",
  unit = "cm",
  r = 1
)

Arguments

df

Data frame with localization data, this contains at least the variables: reachangle_deg and localizationerror_deg.

CC

(boolean) Apply circleCorrect or not (default: TRUE).

handvar

Part of column names specifying reach endpoints (default: hand).

locvar

Part of column names specifying hand location (default: tap).

unit

Unit of the four location variables (default: cm).

r

Radius for the circleCorrect procedure (default: 1)

Value

Hand lcalization data frame extended with columns to be used for smooth spline fitting.


thartbm/handlocs documentation built on Feb. 18, 2025, 10:53 p.m.