Learn R Programming

modello (version 0.1.1)

pop: Pop Modello Objects

Description

S3 method to pop (remove) numbers or graphs from their respective arrays (NUMBERS_ or GRAPHS_).

Usage

pop(x)

# S3 method for modello_number pop(x)

# S3 method for graph pop(x)

Arguments

x

a reference object of call 'number' or 'graph'

Value

Returns invisible x

Examples

Run this code
# NOT RUN {
modello.init(10, 10, 10, 10)
x = number(1)
x$is.linked() # TRUE
pop(x)
x$is.linked() # FALSE
modello.close()
modello.init(10, 10, 10, 10)
g = graph.open()
graph.close()
g$is.linked() # TRUE
pop(g)
g$is.linked() # FALSE
modello.close()
# }

Run the code above in your browser using DataLab