SpatSimObjThis function extracts the 'Spatial Files' slot from a Spatial Simulation Object and removes probability columns while converting 'Positive' and 'Negative' in cell assignment columns to 1 and 0, respectively.
CreateSpatialList(sim_object, single_df = FALSE, multihit_action = "random")A list of data frames, one for each simulated cell type, with cleaned columns
A SpatSimObj
boolean as to whether to collapse the output list of data frames to a single data frame or not. default is FALSE
string of value 'random', 'drop', or 'keep' for cells that are positive for multiple cell assignments
The output of this function creates a list of the spatial files formatted in a way that would allow direct import into a mIF object from the package 'spatialTIME'