Description Usage Arguments Value Examples
The function extracts, without replacement, a sample of objects out of a grid.
1 2 | sampleStar(n, grid, restrict=TRUE)
|
n |
the number of objects to be sampled. |
grid |
the grid from which the objects are sampled. |
restrict |
logical flag indicating if only models younger than 14 Gyr should be considered. |
sampleStar
returns a matrix of n
rows, sampled without
replacement from grid
.
1 2 | data(stdGrid)
STARS <- sampleStar(10, stdGrid)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.