sampleStar {SCEPtER} | R Documentation |
The function extracts, without replacement, a sample of objects out of a grid.
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
.
data(stdGrid)
STARS <- sampleStar(10, stdGrid)