S4class_updateSlots: Update an s4object from a data.frame

Description Usage Arguments Details Value Author(s) See Also

Description

Takes row in the data.frame simsToRun and converts this into the required s4object to run the simulation. For coding simplicity it is required that you provide an example of the s4 class object, this will be overwritten in the procedure.

Usage

1
updateSlots(rowID, simsToRun, s4object)

Arguments

rowID

The row index to take the parameters from

simsToRun

The data.frame of simulation parameters

s4object

an initialised s4object of the required class. This will be overwritten with the required parameters for the simulation

Details

Note there are three columns to be ignored, the first is a rowID, the second last is an idicator for if a simulation has been completed and the last is a filepath for the results of the simulation.

Value

Returns the updated s4object. this will have the same class as the s4object provided as input

Author(s)

Peter Dutton

See Also

addrow, getValue


finite2/peter.utilities documentation built on May 16, 2019, 12:54 p.m.