addAgent: Adding agent to the data

Description Usage Arguments Value Examples

View source: R/addAgent.R

Description

Adding agent to the data

Usage

1
2
3
4
5
6
7
8
9
addAgent(
  agentName,
  agentShapeType,
  agentType,
  startCoordinate,
  path,
  agentColor,
  data
)

Arguments

agentName

The name of the agent

agentShapeType

The type of agent's shape, could be circle, square, etc.

agentType

Type of agent, in order to classifying

startCoordinate

The coordinates of start-point

path

The path of the start and end point

agentColor

The color which agent will be shown by in the map

data

The data that contains the lines of files

Value

The new data

Examples

1
2
3
data <- readFile(pathToFIle)
data <- addAgent('Jim', 'Circle', 'driver', c(30.23, 34,23), c(c(30.23,34,24), c(30.30, 34,35)), 'blue', data)
saveData(newPath, data)

AmirHKiani98/FABM-DataHandler-R documentation built on Dec. 17, 2021, 8:47 a.m.