[R] understanding with

peter dalgaard pdalgd at gmail.com
Sat Sep 10 11:45:39 CEST 2016


> On 10 Sep 2016, at 08:27 , Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:
> 
> 
> The with function is just helpful syntactic sugar for reducing repetitious typing of the name of the list/data frame that contains several objects you want to refer to in a single expression.

A little more than that, witness the difference between these two:

> plot(airquality$Ozone)
> with(airquality, plot(Ozone))


-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list