You first have to run the above code. A new function called ford() will be available. Its argument is a frequency table.

In order to represent a chronological hypothesis, you have to rearrange the order of rows and columns. A way to do it is giving two a vector of indices between brackets right after the frequency table object: