angmom_galaxy | R Documentation |
The purpose of this function is to compute the angular momentum vector.
angmom_galaxy(part_data)
part_data |
The particles from which you would like to calculate the angular momentum vector, J. |
The numeric vector describing the magnitudes of each component of the angular momentum.
galaxy_data = data.frame("ID"=1:100, "x"=stats::rnorm(100),
"y"=stats::rnorm(100), "z"=stats::rnorm(100),
"vx"=stats::rnorm(100), "vy"=stats::rnorm(100),
"vz"=stats::rnorm(100), "Mass"=rep(1,100))
J = angmom_galaxy(galaxy_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.