These two produce the same outcome, but is there an advantage of using one over the other.
- Are they the same thing across all boards?
- Is one inherently better than the other?
- Do they have different applications and are good at different things?
mtcars[mtcars$mpg > 20, c("mpg", "cyl")]
subset(mtcars, mpg > 20, select=c("mpg", "cyl"))