Learn R Programming

cardinalR (version 1.0.6)

gen_unifsphere: Generate Uniform Sphere

Description

This function generates a dataset representing a structure with a uniform sphere.

Usage

gen_unifsphere(n = 500, r = 1)

Value

A data containing a uniform sphere.

Arguments

n

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

r

A numeric vector (default: 1) representing the radius of the sphere.

Examples

Run this code
set.seed(20240412)
unifsphere <- gen_unifsphere(n = 500)

Run the code above in your browser using DataLab