extractInfoByIndex: Extracting information from a single line of data by index

Description Usage Arguments Value Examples

View source: R/extractInfo.R View source: R/extractInfo.R

Description

Extracting information from a single line of data by index

Extracting information from a single line of data by agentType and agentName

Usage

1
2
3
extractInfoByIndex(data, agentType, agentName)

extractInfoByIndex(data, agentType, agentName)

Arguments

data

The data to extract the information from

agentType

agentType of the line supposed to be extracted

agentName

agentName of the line supposed to be extracted

index

The index of the line in the data array to extract.

Value

Extracted data as a list

Extracted data as a list

Examples

1
2
3
data <- c();
addAgent("driver", "circle", "phase 1", "42.23 12.23", "no path", "blue", data)
extractInfoByIndex(data, 1)

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