Learn R Programming

cardinalR (version 1.0.6)

gen_sphericalspiral: Generate Spherical Spiral

Description

This function generates a dataset representing a structure with a spherical spiral.

Usage

gen_sphericalspiral(n = 500, spins = 1)

Value

A data containing a spherical spiral.

Arguments

n

A numeric value (default: 500) representing the sample size.

spins

A numeric value (default: 1) representing the number of loops of the spiral.

Examples

Run this code
set.seed(20240412)
sphericalspiral <- gen_sphericalspiral(n = 500, spins = 1)

Run the code above in your browser using DataLab