This is my first attempt at datastores. I have a folder with multiple sub-folders, each subfolder currently contains 1 csv file (though they might contain more in the future).
I create the object using the following code:
ds = tabularTextDatastore( '~/data/folder_with_subfolders/*' );
This generates the following error: Error using tabularTextDatastore (line 93). Not enough input arguments.
I have tried a number of different things:
- instead of the wildcard, I included the 'IncludeSubfolders', true name/value pair;
- tried adding headers to the CSV file in case that was needed for creating column names;
- renamed the file to a simple name.csv (currently the files are automatically generated from a database);
- specified the .csv FileExtensions option…
The documentation shows how to create a datastore from one csv file, but that is not my use case… What am I missing? Thanks!
Best Answer