Specify a format character vector in readtable
Afficher commentaires plus anciens
I ran "readtable" and got a following warning. Please advise how to specify a format character vector in readtable. It was not clear from the documentation.
Warning: Successfully read the date/time text using the format 'MM/dd/uuuu', but
their format is ambiguous and could also be 'dd/MM/uuuu'. Specify a format
character vector to avoid ambiguity.
Réponse acceptée
Plus de réponses (1)
dpb
le 8 Juil 2018
0 votes
It's not as trivial as the error message makes it seem, granted...there's only the named parameter 'Format' available as input option readtable-Format which will require then specifying the format for every column in the input file, not just one for the datetime entry.
The alternative is to use the importoptions functions, or, if you're only doing this once or twice't for a given file, just use importool
Catégories
En savoir plus sur Time Series Events dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!