Calculate the Subtraction Matrix of a given a vector
- Put the files
values.txtandsubtraction_matrix.Rin the same folder. - Execute in the
Terminal:
$ Rscript subtraction_matrix.RThe Warning message: "NAs introduced by coercion" indicates you have some non-numeric value(s) in your
values.txtfile.
- The output matrix should be in a Comma Separate Value (.csv) file named
subtraction_matrix.csv.