Learn R Programming

gk (version 0.6.0)

project: Project into a region

Description

Project a vector elementwise into a constrained region

Usage

project(x, xmin, xmax)

Value

Vector of closest values to x which satisfy the bounds

Arguments

x

Vector

xmin

Vector of lower bounds

xmax

Vector of upper bounds