powered by
The function extracts, without replacement, a sample of objects out of a grid.
sampleStar(n, grid, restrict=TRUE)
the number of objects to be sampled.
the grid from which the objects are sampled.
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.
sampleStar
n
grid
# NOT RUN { data(stdGrid) STARS <- sampleStar(10, stdGrid) # }
Run the code above in your browser using DataLab