assign_orientation: Assign orientation

View source: R/assign_orientation.R

assign_orientationR Documentation

Assign orientation

Description

Function to assign orientation based on visual inspection of residual plots. Assigns orientation based on residuals for multiple depth bins, simultaneously.

Usage

assign_orientation(
  x,
  formula = vessel + cruise + haul ~ cdepth,
  resid.col,
  resid.cut,
  output.name = "orientation"
)

Arguments

x

Data frame variables used to assign orientation.

formula

Function used to cast data frame, where the depth column used for casting is the response.

resid.col

Name of the column containing residual values.

resid.cut

Threshold value for assigning residuals.

output.name

Name of the orientation column. Default = "orientation"

Value

Returns 'x' with an new column indicating the assigned orientation.

Author(s)

Sean Rohan sean.rohan@noaa.gov


sean-rohan/trawllight documentation built on Jan. 13, 2023, 10:43 p.m.