Mercurial > repos > anmoljh > redundant_entries_remove
comparison remove_redundant_entries.R @ 0:dee6d2dd558c draft
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272
author | anmoljh |
---|---|
date | Thu, 31 May 2018 11:28:57 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:dee6d2dd558c |
---|---|
1 args <- commandArgs(TRUE) | |
2 | |
3 | |
4 res1 <- read.csv(args[1]) | |
5 #res11 <- duplicated(res1[,1:length(res1) - 1]) | |
6 res11 <- duplicated(res1[,1]) | |
7 result <- res1[!res11,] | |
8 names1 <- result[,1] | |
9 rownames(result) <- names1 | |
10 result$Name <- NULL | |
11 write.csv(result,file=args[2]) |