%% Create Timetable from File and Specify Row Times
% Read a table from the comma-separated text file and create a timetable with a row times variable of your choice.
% Create an import options object and preview the tabular data.

opts = detectImportOptions('outages.csv');
preview('outages.csv',opts)

% Create a timetable by specifying the RestorationTime variable to be the row times variable for the timetable. Then, display a summary of the timetable.

TT = readtimetable('outages.csv','RowTimes','RestorationTime');
summary(TT)

% Copyright 2018 The MathWorks, Inc.