What is a formula object in R (the ~ notation) and how is it used beyond modelling?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks what a formula object built with the tilde operator is in R and where it shows up outside model fitting. It tests what a formula stores, how its symbolic operators work, why its captured environment matters, and how it is used for aggregation, plotting and tidyverse shorthands.