next up previous contents index
Next: Defining single observations Up: Reading data Previous: Formatting the data for

Example

Consider the data shown in Table 8.1, consisting of four measurements on eight quantities. Suppose that we wish to read the second column into a data-carrier named X; the third and fourth columns into data-carriers called A1 and A2; and the seventh column into a data-carrier named Y. This could be achieved using the fragment of code shown in Figure 8.1, which we suppose to be part of a subroutine on an external file. (It is advisable not to input large quantities of data interactively: use a data file instead.)

 

Time tex2html_wrap_inline36354 tex2html_wrap_inline36356 tex2html_wrap_inline36358 tex2html_wrap_inline36360 tex2html_wrap_inline36362 tex2html_wrap_inline36364 tex2html_wrap_inline36366
3.85 74.10 74.26 75.67 74.09 73.10 73.58 69.24
3.95 74.10 74.25 75.66 74.08 73.09 73.58 69.24
4.05 74.10 74.25 75.65 74.06 73.08 73.57 69.24
4.15 74.10 74.24 75.64 74.05 73.07 73.57 69.24
Table 8.1:  Formatting data for input to [B/D]

  figure8587
Figure 8.1:  Reading data into [B/D]


next up previous contents index
Next: Defining single observations Up: Reading data Previous: Formatting the data for

David Wooff
Wed Oct 21 15:14:31 BST 1998