SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
subset(studentdata, Drink=='water')
that should do it.