Learn R Programming

RemixAutoML (version 0.5.4)

InsertSortedValue: InsertSortedValue

Description

Update a sorted vector with a new value that preserves sort order

Algorithms

Usage

InsertSortedValue(Vec, Val, order = "left")

Arguments

Val

value to insert

order

'left' or 'right', insert value location

vec

numeric vector

Examples

Run this code
# NOT RUN {
RemixAutoML::InsertSortedValue(vec = seq(2, 2000, 2), Val = 741, order = "left")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab