Learn R Programming

datastructures (version 0.2.9)

[<-,heap,vector,missing,matrix-method: Insert parts to an object

Description

Inserts <key, value> pairs to a heap. The keys are determine the ordering of the heap, while the value is the actual value to store.

Usage

# S4 method for heap,vector,missing,matrix
[(x, i) <- value

Arguments

x

a heap object, such as a fibonacci_heap or a binomial_heap

i

a vector of keys

value

a vector of values for the keys