Learn R Programming

rENA (version 0.3.0)

project: Project ENA Points onto Rotated Space

Description

This function projects ENA points onto the rotated space using the rotation matrix. Optionally, metadata can be included in the resulting points matrix.

Usage

project(x, rotation = NULL, add.meta = TRUE)

Value

The input ena.set object with the projected points matrix (and metadata if requested).

Arguments

x

An ena.set object containing the points for projection and rotation matrix.

rotation

Optional. A rotation matrix to use for projection if x is not an ena.set.

add.meta

Logical. If TRUE (default), metadata will be included in the output.

Examples

Run this code
# Assuming 'set' is an ena.set object:
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() |>
  center() |>
  rotate() |>
  project()

Run the code above in your browser using DataLab