read_disk_multiagent: Read *pointblank* _agents_ stored on disk as a _multiagent_

View source: R/read_disk_multiagent.R

read_disk_multiagentR Documentation

Read pointblank agents stored on disk as a multiagent

Description

An agent or informant can be written to disk with the x_write_disk() function. While useful for later retrieving the stored agent with x_read_disk() it's also possible to read a series of on-disk agents with the read_disk_multiagent() function, which creates a ptblank_multiagent object. A multiagent object can also be generated via the create_multiagent() function but is less convenient to use if one is just using agents that have been previous written to disk.

Usage

read_disk_multiagent(filenames = NULL, pattern = NULL, path = NULL)

Arguments

filenames

The names of files (holding agent objects) that were previously written by x_write_disk().

pattern

A regex pattern for accessing saved-to-disk agent files located in a directory (specified in the path argument).

path

A path to a collection of files. This is either optional in the case that files are specified in filenames (the path combined with all filenames), or, required when providing a pattern for file names.

Value

A ptblank_multiagent object.

Function ID

10-2

See Also

Other The multiagent: create_multiagent(), get_multiagent_report()


pointblank documentation built on April 25, 2023, 5:06 p.m.