Mika/Notes/Computer Stuff/R

From WikiDotMako
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This is where I keep track of my R problems.

Compare

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