Skip to contents

The makeCutlineAngles function calculates the cutline angles for a given object of class wnominate, which can either be a nomObject or OCobject. The function processes the roll call data and computes the angles associated with the cutlines.

Usage

makeCutlineAngles(obj)

Arguments

obj

An object of class wnominate, which can either be a nomObject or OCobject. This object contains roll call data and other relevant information needed to calculate the cutline angles.

Value

A data frame with three columns:

angle

The calculated cutline angles in degrees.

N1W

The adjusted first component of the normal vector to the cutline.

N2W

The adjusted second component of the normal vector to the cutline.

Details

The function differentiates between objects of class nomObject and OCobject to perform appropriate calculations. It uses the roll call data within the object to compute the normal vectors and their corresponding angles.

Examples

if (FALSE) { # \dontrun{
# Assuming `wnominate_obj` is a valid wnominate object of class `nomObject` or `OCobject`
result <- makeCutlineAngles(wnominate_obj)
print(result)
} # }