[R] Does R have a "const object"?

Michael Friendly friendly at yorku.ca
Wed Mar 16 14:04:13 CET 2011


On 3/15/2011 2:23 PM, Uwe Ligges wrote:
>
>
> On 15.03.2011 15:53, xiagao1982 wrote:
>> Hi, all,
>>
>> Does R have a "const object" concept like which is in C++ language? I
>> want to set some data frames as constant to avoid being modified
>> unintentionally. Thanks!
>
>
> Although there is almost never a "No" in R, the best short answer is: "No".

This is just the flexibility of R.  I've just discovered a new class of 
geometries based on

 > pi <- 2.3
?Constants


-- 
Michael Friendly     Email: friendly AT yorku DOT ca
Professor, Psychology Dept.
York University      Voice: 416 736-5115 x66249 Fax: 416 736-5814
4700 Keele Street    Web:   http://www.datavis.ca
Toronto, ONT  M3J 1P3 CANADA



More information about the R-help mailing list