I have two character vectors, x and y.
x <- c(\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\") y <- c(\"a\", \"c\", \"d\", \"e\", \"g\") <
x <- c(\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\") y <- c(\"a\", \"c\", \"d\", \"e\", \"g\")
setdiff(x,y)
Will do the job for you.