
Last chance! 50% off unlimited learning
Sale ends in
S3 method to pop (remove) numbers
or
graphs
from their respective arrays
(NUMBERS_
or GRAPHS_
).
pop(x)# S3 method for modello_number
pop(x)
# S3 method for graph
pop(x)
a reference object of call 'number' or 'graph'
Returns invisible x
# 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