%% Preview Contents of Tall Table
% Create a tall table and preview the bottom few rows of data.
% Create a tall table for the airlinesmall.csv data set. Select a subset of the variables to work with. Use tail to extract the last few rows of data.

varnames = {'Year','Month','ArrDelay','DepDelay','UniqueCarrier'};
ds = tabularTextDatastore('airlinesmall.csv','TreatAsMissing','NA',...
    'SelectedVariableNames',varnames);
T = tall(ds)

%

tt = tail(T)

%
% Collect the results into memory to view the data.

last_rows = gather(tt)

% Copyright 2019 The MathWorks, Inc.