[R] I don't understand this

Hotz, T. th50 at leicester.ac.uk
Tue Sep 2 18:40:58 CEST 2003


> -----Original Message-----
> From: Simon Fear [mailto:Simon.Fear at synequanon.com]
> Sent: 02 September 2003 17:19
> To: Barry Rowlingson; Peter Dalgaard BSA
> Cc: r-help at r-project.org
> Subject: RE: [R] I don't understand this

> Isn't it the case that
> 
> (expr)(expr)
> 
> is incorrect syntax under any circumstances?

No, you could have a function definition on the left:

> (function(x)x^2)(2)
[1] 4

HTH

Thomas

---

Thomas Hotz
Research Associate in Medical Statistics
University of Leicester
United Kingdom

Department of Epidemiology and Public Health
22-28 Princess Road West
Leicester
LE1 6TP
Tel +44 116 252-5410
Fax +44 116 252-5423

Division of Medicine for the Elderly
Department of Medicine
The Glenfield Hospital
Leicester
LE3 9QP
Tel +44 116 256-3643
Fax +44 116 232-2976




More information about the R-help mailing list