One of the types of objects in Praat.
A TableOfReal object contains a number of cells. Each cell belongs to a row and a column. For instance, a TableOfReal with 10 rows and 3 columns has 30 cells.
Each row and each column may be labeled with a title.
Suppose you have F1 and F2 data for vowels. You can create a simple text file like the following:
"ooTextFile" ! The line by which Praat can recognize your file
"TableOfReal" ! The line that tells Praat about the contents
2 "F1" "F2" ! Number of columns, and column labels
3 ! Number of rows
"a" 800 1100 ! Row label (vowel), F1 value, F2 value
"i" 280 2800 ! Row label (vowel), F1 value, F2 value
"u" 260 560 ! Row label (vowel), F1 value, F2 value
Praat is rather forgiving about the use of spaces, tabs, and newlines. See Save as text file... for general information.
You will often have your data in a file with a self-describing format, i.e. in which the number of values on a line equals the number of columns of the table:
Such a file can be read with Read Matrix from raw text file.... This creates a Matrix object, which can be cast to a TableOfReal object by Matrix: To TableOfReal. The resulting TableOfReal does not have any row or column labels yet. You could add column labels with:
Set column label (index)... 1 F1
Set column label (index)... 2 F2
Of course, if the row labels contain crucial information, and the number of rows is large, this is not a feasible method.
© ppgb, March 16, 2003