[R] Does R have a "const object"?
Uwe Ligges
ligges at statistik.tu-dortmund.de
Tue Mar 15 19:56:42 CET 2011
On 15.03.2011 19:35, Martin Morgan wrote:
> On 03/15/2011 11:34 AM, Duncan Murdoch wrote:
>> On 15/03/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".
>>
>> Very nice answer! Achim, this is a fortune candidate if I ever saw one!
>
> but aren't lockBinding / lockEnvironment a reasonable longer answer? Martin
Thanks. Indeed they are - and I had a vague idea there might be
something I did not know, hence I said "there is almost never a \"No\"
in R".
Uwe
>>
>> Duncan Murdoch
>>
>> ______________________________________________
>> 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.
>
>
More information about the R-help
mailing list