Write a Pmetrics .csv Matrix FileSource:
This function is largely superseded as the function is accessed with
$write() method for PM_data objects. There is rarely a need to call
it directly. It is the companion function to PMreadMatrix.
It will write an appropriate R data object to a formatted .csv file.
Must be a data.frame with appropriate structure (see PMcheck).
Name of file to create.
Boolean operator to write even if errors are detected. Default is
Which matrix data format version to write. Default is the current version.
Is there a header row? Default is
Returns the error report (see PMcheck for details).
PMwriteMatrix will first run PMcheck to determine
if there are any errors in the structure of
data. If the error check
fails, the file will not be written and a message will be printed on the console.