-
Notifications
You must be signed in to change notification settings - Fork 999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closes #2930 -- bugfix to as.matrix.data.table() #2938
Closed
Closed
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
0389de1
rownames argument to as.matrix and as.data.frame
sritchie73 b1590ae
Added documentation
sritchie73 1323be0
some unit tests
sritchie73 ddaeb6a
added news
sritchie73 0ab7e4f
Resolve CRAN notes about global variable bindings
sritchie73 8477788
Reverted as.data.frame.data.table
sritchie73 ac52d9a
Unit tests for errors and warnings
sritchie73 b9eab65
Fixed error message in tests and test increment numbers
sritchie73 c0cca0d
Merging changes from upstream
sritchie73 11da144
Removed with=FALSE
sritchie73 5b4bca7
Enhanced clarity of an error check
sritchie73 c5ae94b
replaced isTRUE
sritchie73 f07b813
Vector of rownames may be used in as.matrix
sritchie73 3d4681c
Fixed number in tests to reflect PR
sritchie73 d9a4a54
mainly cosmetic changes
MichaelChirico de48d84
typo (rownames is integer not string here)
MichaelChirico 2810538
Merge branch 'master' into as_matrix_rownames
mattdowle 8348172
merged master
sritchie73 12cace8
merge upstream PR changes
sritchie73 895554e
NULL, FALSE, and NA now passthrough instead of warning
sritchie73 a887594
Fixed incorrect warning message
sritchie73 cde74a2
Removed extraneous newline before tests
sritchie73 6afb012
Merge branch 'master' into as_matrix_rownames
sritchie73 5be4459
Fix for Issue #2930
sritchie73 3666b9c
Added argument rownames.literal to as.matrix()
sritchie73 9add536
Fixed docs
sritchie73 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think an extra argument for the length-1 case is going to be necessary. Something like
rownames.literal = TRUE
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe. I'm not sure having an extra argument is really necessary, since it will only apply to data.tables with 1 row, unless we want to allow vector recycling for the rownames when the data.table has > 1 rows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this PR arose because of confusion about 1-row data.tables. And there may be other cases where the overloaded argument of
rownames
might cause problems.