중복 체크

Published onesixx on

 

 

id <- I(c("bb","bb","bb","aa","aa","aa"))
val <- I(c("b1","b2","b3","a1","a1","a2"))
DD <- data.frame(id,val)
str(DD)


ddply(DD, .(id, val), function(x){ x$DUP_MODULE = 1:nrow(x); x})

 

 

 

Categories: Programming

onesixx

Blog Owner

Leave a Reply

Your email address will not be published.