Write a Pmetrics .csv Matrix FileSource:
PMwriteMatrix is the companion function to
It will write an appropriate R data object to a formatted .csv file.
Must be a data.frame with appropriate structure (see
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.
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.