Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (10 sloc) 0.27 kb
find.replace <- function(vector,find,replace.with){
if(length(find) == length(replace.with)){
for(i in 1:length(find)){
vector[vector == find[i]] <- replace.with[i]
}
} else {
stop("Find and replace vectors should be same length")
}
vector
}
Jump to Line
Something went wrong with that request. Please try again.