readEvents: Reads the network events file.

Description Usage Arguments Value

View source: R/readEvents.R

Description

Reads the network events file. This file can come from the network simulator or it ca be a file with real mobile network events provided by an MNO.

Usage

1
readEvents(eventsFileName, simulatedData = TRUE)

Arguments

eventsFileName

The name of the file with the network events to be used. Depending on the parameter simulatedData it could be a .csv file coming from the simulation software or from a real MNO. In case the file comes from the simulation software it should contain following columns:
time, antennaID, eventCode, deviceID, x, y, tile. Only the first 4 columns are used, the rest are ignored.

simulatedData

If TRUE it means that the input data are simulated data, otherwise the data come from a real MNO.

Value

Returns a data.table object that contains the events generated by the mobile network. The number of rows equals the number of connection events recorded by the network. The returned object has the following columns: time, deviceID, eventCode, antennaID, x, y, tile, obsVar. obsVar stands for observed variable and is a concatenation between the antenna ID and the event code.


bogdanoancea/deduplication documentation built on Dec. 2, 2020, 11:22 p.m.