Saves an SBM Network object to local disk for use accross sessions without instantiating again. Opened with load_sbm_network

save_sbm_network(sbm, loc)

Arguments

sbm

Object of class sbm_network.

loc

Location on computer of saved model .rds file.

Value

Saved .rds file on disk at specified location.

See also

Other model_setup: load_sbm_network(), new_sbm_network()

Examples

network <- sim_basic_block_network(n_blocks = 3, n_nodes_per_block = 40) sbm_net <- new_sbm_network(edges = network$edges, nodes = network$nodes) temp <- tempfile() save_sbm_network(sbm_net, temp) loaded_sbm_net <- load_sbm_network(temp)