[datatable-help] duplicated, with a key
Joseph Voelkel
jgvcqa at rit.edu
Sat Mar 3 23:53:13 CET 2012
- Previous message: [datatable-help] ggplot2 and GGally, NeatMap, PKgraph, Rcell, TradeStrategyAnalyzer, XLConnect, bams, bios2mds, cda, data.table, directlabels, ez, ezsim, ggcolpairs, nullabor, nvis, planar, ppstat, spef, spikeSlabGAM, tourr
- Next message: [datatable-help] duplicated, with a key
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Is the second result by design? I found it confusing:
x<-data.table(a=c(1:5,1:5),b=1:10)
sum(duplicated(x)) # 0, as expected
setkey(x,a)
sum(duplicated(x)) # 5
Thanks,
Joe
Joseph G. Voelkel, Ph.D.
Graduate Program Chair, Center for Quality and Applied Statistics
Kate Gleason College of Engineering
Rochester Institute of Technology
V 585-475-2231
F 585-475-5959
joseph.voelkel at rit.edu
CONFIDENTIALITY NOTE: The information transmitted, including attachments, is intended only for the person(s) or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and destroy any copies of this information.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20120303/0ff6bcbb/attachment.html>
- Previous message: [datatable-help] ggplot2 and GGally, NeatMap, PKgraph, Rcell, TradeStrategyAnalyzer, XLConnect, bams, bios2mds, cda, data.table, directlabels, ez, ezsim, ggcolpairs, nullabor, nvis, planar, ppstat, spef, spikeSlabGAM, tourr
- Next message: [datatable-help] duplicated, with a key
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the datatable-help
mailing list