sphere_norm: Apply Spherical Normalization to ENA Data

View source: R/piped.R

sphere_normR Documentation

Apply Spherical Normalization to ENA Data

Description

This function applies spherical normalization to the connection counts in an 'ena.set' object or to a raw matrix of connection counts. Normalization is a key step before centering and rotation in ENA.

Usage

sphere_norm(x, add.meta = TRUE)

Arguments

x

An 'ena.set' object or a numeric matrix of connection counts.

add.meta

A logical value. If 'TRUE' (the default), metadata from the 'ena.set' is preserved and included in the output. This parameter is ignored if 'x' is a matrix.

Value

If 'x' is an 'ena.set', it returns the modified 'ena.set' with a new 'line.weights' matrix and an updated 'centervec' in the 'rotation' object. If 'x' is a matrix, it returns a matrix of normalized line weights.

Examples

data(RS.data)

codes <- c("Data", "Technical.Constraints", "Performance.Parameters",
           "Client.and.Consultant.Requests", "Design.Reasoning",
           "Collaboration")
units <- c("Condition", "UserName")
horizon <- c("Condition", "GroupName")
enaset <- RS.data |>
  accumulate(units, codes, horizon) |>
  sphere_norm()

rENA documentation built on Nov. 5, 2025, 5:50 p.m.