Skip to content

Commit

Permalink
Minor code change for readability.
Browse files Browse the repository at this point in the history
  • Loading branch information
antononcube committed Oct 25, 2017
1 parent 02f6778 commit 0aabc9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Misc/RSparseMatrix.m
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ Note that assignment (with Set[__]) is not implemented.
ToRSparseMatrix[xtabs_Association, opts : OptionsPattern[] ] :=
Block[{},
ToRSparseMatrix[ xtabs["XTABMatrix"],
"RowNames" -> ToString /@ xtabs["RowNames"],
"ColumnNames" -> ToString /@ xtabs["ColumnNames"],
"RowNames" -> Map[ToString, xtabs["RowNames"]],
"ColumnNames" -> Map[ToString, xtabs["ColumnNames"]],
opts
]
]/; MemberQ[ Keys[xtabs], "XTABMatrix" ];
Expand Down

0 comments on commit 0aabc9b

Please sign in to comment.