You may want to read a DataFrame
from a CSV (Comma separated values) file or maybe even from a TSV or WSV (tabs and whitespace separated files). If your file has the right extension, you can use the readtable
function to read in the dataframe:
readtable("dataset.CSV")
But what if your file doesn't have the right extension? You can specify the delimiter that your file uses (comma, tab, whitespace etc) as a keyword argument to the readtable
function:
readtable("dataset.txt", separator=',')