Error while finding the outliers in R for diamonds dataset : for the below code, i am getting an error of diamonds[which(diamonds$carat,diamonds$depth,diamonds$table,diamonds$x,diamonds$y,diamonds$z%in% outliers),]

error is 

Error in which(diamonds$carat, diamonds$depth, diamonds$table, diamonds$x,  : 
  unused arguments (diamonds$x, diamonds$y, diamonds$z %in% outliers)

