function generates frequencies based on the values in a freq object
and saves the frequency tables to a frequencies file
. The optional string argument frequencies_filename
allows you to specify the name of the file. If this argument is not provided, the frequency table will be saved to the file specified by the Freqs
PFF attribute. If this PFF attribute is not specified, the frequency table will be saved to the listing file (if possible).
The function returns a logical value of 1 (true) if the frequencies are successfully saved, and 0 (false) otherwise.