view remove_redundant_entries.R @ 1:6fd1efe69a78 draft default tip

planemo upload commit 1a2e0f7cf917d319b32efac4ce8f9c3b0e838b8b-dirty
author anmoljh
date Sun, 03 Jun 2018 03:42:10 -0400
parents dee6d2dd558c
children
line wrap: on
line source

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])