Below script did fetch me the results but it also prints the value of new data frame(cars) created.
mtcars[which(mtcars$mpg>20),] cars<- mtcars[which(mt