recode_credits: Recode numeric data into plausible credit data

Description Usage Arguments Details Value

View source: R/utils.R

Description

Recode numeric data into plausible credit data

Usage

1
recode_credits(x, top = 6)

Arguments

x

numeric, vector of numerics to be truncated

top

integer, maximum allowable value

Details

enforces no negative numbers and truncates data at a user specified maximum

Value

a vector, length of x, with truncated values


OpenSDP/OpenSDPsynthR documentation built on June 20, 2020, 6:18 a.m.