sampleStar: Sample a set of objects out of a grid

Description Usage Arguments Value Examples

View source: R/SCEPtER.R

Description

The function extracts, without replacement, a sample of objects out of a grid.

Usage

1
2
    sampleStar(n, grid, restrict=TRUE)
     

Arguments

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.

Value

sampleStar returns a matrix of n rows, sampled without replacement from grid.

Examples

1
2
data(stdGrid)
STARS <- sampleStar(10, stdGrid)

SCEPtER documentation built on March 29, 2021, 5:08 p.m.