on.torus {ClusTorus}R Documentation

Transform the angular data to be on principal interval

Description

on.torus transforms d-dimensional angular data to be on [0, 2π)^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π)^d.

Examples

data <- SARS_CoV_2$tbl[1:200, 1:2]
data <- data * pi / 180

on.torus(data)

[Package ClusTorus version 0.1.3 Index]