Mika/Notes/Computer Stuff/R

From WikiDotMako

This is where I keep track of my R problems.

Compare[edit]

  1. Find similarities between two lists:
   intersect(x,y)
  1. Find difference between two lists:
   outersect <- function(x, y) {
         sort(c(setdiff(x, y),
                setdiff(y, x)))
       }

(Taken from someone's code. It's on links.)