invert: Invert the direction of coordinates

View source: R/functions_tools.r

invertR Documentation

Invert the direction of coordinates

Description

Invert one or more axes of a correspondence analysis. The principal coordinates of the analysis are multiplied by -1.

Usage

invert(x, dim = 1)

Arguments

x

is a soc.ca object

dim

is the dimensions to be inverted

Details

This is a convieniency function as you would have to modify coord.mod, coord.ind and coord.sup in the soc.ca object.

Value

a soc.ca object with inverted coordinates on the specified dimensions

See Also

soc.mca, add.to.label

Examples

example(soc.ca)
inverted.result  <- invert(result, 1:2)
result$coord.ind[1, 1:2]
inverted.result$coord.ind[1, 1:2]

Rsoc/soc.ca documentation built on March 7, 2024, 8:59 p.m.