load.obj: Load specific objects in a .Rdata file

Description Usage Arguments Value Author(s) See Also Examples

View source: R/hmob_funcs.R

Description

This function takes a .Rdata file and loads the indexed item(s) into the current environment as an object.

Usage

1
load.obj(x = 1, file)

Arguments

x

the index corresponding to the desired object (default = 1)

file

filepath to .Rdata object

Value

an R object

Author(s)

John Giles

See Also

Other utility: check.distance.matrix(), get.admin.level(), get.legend(), get.names(), get.pop.vec(), get.unique.coords(), get.unique.names(), rjags.combine(), rjags.mcmc.list(), see(), trip.map()

Examples

1
2
3
sim <- load.obj("./output/TSIR_sim_influenza_high.Rdata")

y.route <- load.obj(3, './data/duration_data_arrays_1day_full.Rdata')  # y.route only

gilesjohnr/hmob documentation built on Aug. 8, 2020, 1:26 a.m.