That is, using the with() method, we may evaluate a R expression within the function we're passing as an input. It only works with data frames. As a result, the R expression's result is evaluated in relation to the data frame supplied to it as an argument.