%% Preview Data in TabularTextDatastore
% Create a datastore from the sample file, airlinesmall.csv, which contains tabular data.

ds = tabularTextDatastore('airlinesmall.csv','TreatAsMissing','NA',...
    'MissingValue',0);

%
% Modify the SelectedVariableNames property to specify the variables of interest.

ds.SelectedVariableNames = {'DepTime','ArrTime','ActualElapsedTime'};

%
% Preview the data for the selected variables.

data = preview(ds)

% Copyright 2020 The MathWorks, Inc.