Learn R Programming

caRamel (version 1.4)

rselect: Selection of n points

Description

performs a selection of n points in facp

Usage

rselect(n, facp)

Value

ix : ranks of selected points (vector of dimension n)

Arguments

n

: number of points to select

facp

: vector of initial points

Author

Fabrice Zaoui

Examples

Run this code
# Definition of the parameters
n <- 5
facp <- runif(30)
# Call the function
res <- rselect(n, facp)

Run the code above in your browser using DataLab