powered by
This function generates a dataset representing a structure with a uniform sphere.
gen_unifsphere(n = 500, r = 1)
A data containing a uniform sphere.
A numeric value (default: 500) representing the sample size.
A numeric vector (default: 1) representing the radius of the sphere.
set.seed(20240412) unifsphere <- gen_unifsphere(n = 500)
Run the code above in your browser using DataLab