createModObject: This function checks a sim list for a specific object at a...

Description Usage Arguments Value Author(s)

View source: R/createModObject.R

Description

This function checks a sim list for a specific object at a specific time, or searches for it in an input folder (i.e. saved outputs). This function simulates the existence of a sim list with specific objects in time t.

Usage

1
createModObject(data, sim = NULL, pathInput, currentTime, fun = readRDS)

Arguments

data

character string of the object or file name to be searched for

sim

simList. Default is 'NULL'.

pathInput

path to the directory containing the files to be searched for.

currentTime

Numeric. Current time to be used to serach for the object.

fun

function to be used to recover the file. Default is 'readRDS'

Value

A list of the objects that were read from disk. Currently the function only works with '.tif' (i.e. raster) and '.rds' objects.

Author(s)

Tati Micheletti


tati-micheletti/usefun documentation built on June 29, 2020, 9:31 a.m.