Learn R Programming

ClusTorus (version 0.2.2)

on.torus: Transform the angular data to be on principal interval

Description

on.torus transforms d-dimensional angular data to be on \([0, 2\pi)^d\).

Usage

on.torus(x)

Arguments

x

d-dimensional angular data(vector or matrix) whose unit is the radian.

Value

d-dimensional radian-unit angular data on \([0, 2\pi)^d\).

Examples

Run this code
# NOT RUN {
data <- SARS_CoV_2 * pi / 180

on.torus(data)
# }

Run the code above in your browser using DataLab