using readtable on a csv file where some rows have partially missing data
Afficher commentaires plus anciens
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!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Data Type Identification dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!