I don't think you answered the OP's query, although I confess that I
am not so sure I understand it either (see below). In any case, I
believe the R level loop (i.e. apply()) is unnecessary. There is a
unique (and a duplicated()) method for data frames, so simply
unique(x)
returns a data frame wi
Hi,
Try ?duplicated()
apply(x,2,function(x) {x[duplicated(x)]<-"";x})
A.K.
Hi all,
I have a dataset of around a thousand column and a few thousands
of rows. I'm trying to get all the possible combinations (without
repetition) of the data columns and process them in parallel. Here's a
simpl
2 matches
Mail list logo