Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
3 answers
96 views

How can I remove duplicate values by looking at other column values in the data frame?

There are two columns with opposite values of item1 and item2 columns, and the order of the columns is random. I want to find and remove data with the same values in columns item1 and item2. like this....
ykoo's user avatar
  • 249
2 votes
1 answer
667 views

order a row by column name of other data frame and match in length

For example you have this data frame : dd <- data.frame(b = c("cpg1", "cpg2", "cpg3", "cpg4"), x = c("A", "D", "A", "C"), y = c(8, 3, 9, 9), z = c(1, 1, 1, 2)) ...
XXXX992's user avatar
  • 35