Importing a CSV in to a dataset
Mostra commenti meno recenti
I have a CSV file (JetQuadrants.csv) that has a row of 8 titles at the top, and corresponding 48 rows of data. 2 columns of data are pure text, the other 6 are purely numeric. I'm attempting to import this csv data in to a dataset, but continue to get this as my dataset
[empty 0-by-344 dataset]
If I delete a column, the 344 decreases.
Here's my code:
sum_data=dataset('File','JetQuadrants.csv','ReadVarNames',true,'ReadObsNames',false,'Delimiter',',');
1 Commento
Larissa
il 7 Giu 2011
Risposta accettata
Più risposte (1)
Walter Roberson
il 7 Giu 2011
0 voti
Specify a 'Range' parameter, as you need to skip the extra titles. dataset() is normally only set up to consider the possibility of a single row of column headers.
1 Commento
Larissa
il 7 Giu 2011
Categorie
Scopri di più su Language Support in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!