[R] Newbie question: histogram

Simon Fear Simon.Fear at synequanon.com
Thu Feb 5 14:45:36 CET 2004


It's not world shattering but for the record the following is not true:

> -----Original Message-----
> From: John Fox [mailto:jfox at mcmaster.ca]
> (snip)
> In particular, although using with() is perhaps less ambiguous, it is 
> necessary to repeat it for each command.

You can group as many commands as you like, as in

> df <- data.frame(x=1:10, y=1:10)
> with(df, {print(x)
+ print(y)})
 [1]  1  2  3  4  5  6  7  8  9 10
 [1]  1  2  3  4  5  6  7  8  9 10  
 
Simon Fear 
Senior Statistician 
Syne qua non Ltd 
Tel: +44 (0) 1379 644449 
Fax: +44 (0) 1379 644445 
email: Simon.Fear at synequanon.com 
web: http://www.synequanon.com 
  
Number of attachments included with this message: 0 
  
This message (and any associated files) is confidential and\...{{dropped}}




More information about the R-help mailing list