Displaying 3 results from an estimated 3 matches for "isdup".
Did you mean:
isdump
2009 May 08
1
anyDuplicated(incomp=NA) fails
...x: unique.c
===================================================================
--- unique.c (revision 48503)
+++ unique.c (working copy)
@@ -462,16 +462,18 @@
for (i = 0; i < data.M; i++) h[i] = NIL;
if(from_last)
for (i = n-1; i >= 0; i--) {
-#define IS_DUPLICATED_CHECK
- if(isDuplicated(x, i, &data)) {
- Rboolean isDup = TRUE;
- for(j = 0; j < m; j++)
- if(data.equal(x, i, incomp, j)) {
- isDup = FALSE; break;
- }
- if(isDup)
- return ++i;
- /* else continue */
+#define IS_DUPLICATED_CHECK \
+ if(isDuplicated(x, i, &data)) { \
+ Rboolean...
2001 Oct 31
2
removing duplicated rows from a data.frame
Dear all,
Sorry for the simplicity of the question, but how does one go about removing duplicated rows in a data.frame?
I'm looking for a quick and simple solution, as my data.frames are relatively large (50000 by 50). I've racked my brain and searched the help files and found nothing useful or quick, only duplicated() and unique() which work only work on lists.
Thanks
Gary.
2008 Jan 10
5
Extracting last time value
I have a dataframe as follows:
Date time value
20110620 11:18:00 7
20110620 11:39:00 9
20110621 11:41:00 8
20110621 11:40:00 6
20110622 14:05:00 8
20110622 14:06:00 6
For every date, I want to extract the row that has the greatest time.
Therefore, ending up like:
20110620 11:39:00 9
20110621 11:41:00 8
20110622 14:07:00 6
I am using for loops (for every date, find largest time value) to do