%% Create Datastore for Text Data
% Create a datastore associated with the sample file airlinesmall.csv. This file contains airline data from the years 1987 through 2008.
% To manage the import of missing data in numeric columns, use the 'TreatAsMissing' and 'MissingValue' name-value pair arguments. Specify the value 'NA' for 'TreatAsMissing' and 0 for 'MissingValue' to replace every instance of 'NA' with a 0 in the imported data.

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

% datastore creates a TabularTextDatastore.
% Copyright 2019 The MathWorks, Inc.