You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow passing data.frame directly to dcast(), melt() (#7634)
* feat(7614): added s3 method at dcast and melt for data.frame
* feat(7614): added to news
* feat(7614): code styling
* feat(7614): bug fix on dcast
* feat(7614): added s3method to namespace
* feat(7614): fix test 2365.1 as its calling undefined columns
* feat(7614): removed s3method and used redirection incase of data.frame for dcast/melt
* feat(7614): code linting
* feat(7614): use call to capture args and redirect to dcast.data.table and melt.data.table
* feat(7614): updated tests and dcast, melt
* Tidy up NEWS
* sync deprecated test comments
---------
Co-authored-by: Michael Chirico <chiricom@google.com>
Copy file name to clipboardExpand all lines: NEWS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,8 @@
26
26
- Type conversion support in GForce expressions (e.g., `sum(as.numeric(x))` will use GForce, saving the need to coerce `x` in a setup step) [#2934](https://github.com/Rdatatable/data.table/issues/2934)
27
27
- Arithmetic operation support in GForce (e.g., `max(x) - min(x)` will use GForce on both `max(x)` and `min(x)`, saving the need to do the subtraction in a follow-up step) [#3815](https://github.com/Rdatatable/data.table/issues/3815)
28
28
29
+
4.`dcast()` and `melt()` "just work" when passed a data.frame, not just data.tables, with no need for coercion, [#7614](https://github.com/Rdatatable/data.table/issues/7614). Thanks @MichaelChirico for the suggestion and @manmita for the PR. Note that to avoid potential conflicts with {reshape2}'s data.frame methods, we do the dispatch to the data.table method manually.
30
+
29
31
### BUG FIXES
30
32
31
33
1.`fread()` with `skip=0` and `(header=TRUE|FALSE)` no longer skips the first row when it has fewer fields than subsequent rows, [#7463](https://github.com/Rdatatable/data.table/issues/7463). Thanks @emayerhofer for the report and @ben-schwen for the fix.
0 commit comments