using readtable on a csv file where some rows have partially missing data
Show older comments
Hi,
I'm trying to use 'readtable' to read in this csv file, which is weather station data:
I download the file locally, then run this
currFileName = '~/climate_hourly_MB_5060600_2000_P1H.csv';
currRecords = readtable(currFileName);
This reads in a 8738 x 3 table. It should be an 8738 x 28 table. I think gets confused at line 36 of the data where there's a big chunk of missing data for all columns after the location and time info.
Is there a way of cleanly reading this in? I tried giving 'readtable' a 'delimitedTextImportOptions' object, but couldn't get the parameters for the object right and it kept returning the 8738 x 3 table.
Thanks!
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Identification in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!