Description Usage Format Details Methods Source
This is an R6 class for Telematics which contains methods to create a master summary file. The mster summary file is a summarization of all trips by all drivers. Each trip has about 66 features that are created by this class
1 |
An R6Class
generator object
This class needs a location for masterSummary.csv as part of constructors. You can call load method on the class to load the summary file OR You can call createMasterSummary to create a new one.
load(trip)
This method uses verbose = TRUE
as an argument to load the masterfile into memory.
summary()
This method prints a summary of the master file.
drivers()
This method returns the unique drivers loaded into memory.
CreateMasterSummary()
Creates the master summary csv file that has a summary of the various features of all the trips.
Method options and Defaults :
file.list ="fileList.csv" : The CSV file that has listing of all the trips
root.folder = ". : The root.folder where the directory structure is placed
subset.driver.count = 0 : the number of drivers you want in your master. IF 0 then all drivers considered. Note this can take a few hours as we have about half million trip.
cores = detectCores() : number of cores to run on
SegmentDrivers()
This method runs a K-means clustering algorith to segment drivers in the clusters. The user has to supply the numebr of segments. The return type if a k-means model
VisualizeSegments()
This method shows a clusterPlot of a previously create k-means model
telematicsUtil.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.