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

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

%

tt = head(T)

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

t8 = gather(tt)

% Copyright 2012 The MathWorks, Inc.