Mercurial > repos > anmoljh > redundant_entries_remove
diff remove_redundant_entries.R @ 0:dee6d2dd558c draft
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272
author | anmoljh |
---|---|
date | Thu, 31 May 2018 11:28:57 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/remove_redundant_entries.R Thu May 31 11:28:57 2018 -0400 @@ -0,0 +1,11 @@ +args <- commandArgs(TRUE) + + +res1 <- read.csv(args[1]) +#res11 <- duplicated(res1[,1:length(res1) - 1]) +res11 <- duplicated(res1[,1]) +result <- res1[!res11,] +names1 <- result[,1] +rownames(result) <- names1 +result$Name <- NULL +write.csv(result,file=args[2])