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

From: Michael Friendly <friendly_at_yorku.ca>
Date: Wed, 16 Mar 2011 09:04:13 -0400

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

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 16 Mar 2011 - 13:07:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Mar 2011 - 16:00:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive