Bearloga has submitted this change and it was merged.

Change subject: fromLast = TRUE
......................................................................


fromLast = TRUE

Adds fromLast so we're selecting the last, rather than
first, element.

Change-Id: I1ddd96265d1c9b6f8acb121bd0cd943d55bae1e0
---
M utils.R
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Bearloga: Verified; Looks good to me, approved



diff --git a/utils.R b/utils.R
index d717e80..4cf528a 100644
--- a/utils.R
+++ b/utils.R
@@ -11,7 +11,7 @@
     as.data.table
   
   # Deduplicate
-  data <- data[!duplicated(data[,1:(ncol(data) - 1), with=FALSE])]
+  data <- data[!duplicated(data[,1:(ncol(data) - 1), with=FALSE], fromLast = 
TRUE)]
   
   # Format
   data$is_search <- ifelse(data$is_search, "Referred by search", "Not referred 
by search")

-- 
To view, visit https://gerrit.wikimedia.org/r/265148
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1ddd96265d1c9b6f8acb121bd0cd943d55bae1e0
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/discovery/wonderbolt
Gerrit-Branch: master
Gerrit-Owner: OliverKeyes <[email protected]>
Gerrit-Reviewer: Bearloga <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to