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

rex.dwyer at syngenta.com rex.dwyer at syngenta.com
Wed Mar 16 01:52:35 CET 2011


Cheer up! R is a step closer to that concept than the old FORTRAN compilers that couldn't even guarantee that 37 was a constant if used repeatedly in a subroutine call.

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Uwe Ligges
Sent: Tuesday, March 15, 2011 2:23 PM
To: xiagao1982
Cc: r-help
Subject: Re: [R] Does R have a "const object"?



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".

Best,
Uwe  Ligges


>
>
>
> xiagao1982
> 2011-03-15
>
>       [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.

______________________________________________
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.




message may contain confidential information. If you are not the designated recipient, please notify the sender immediately, and delete the original and any copies. Any use of the message by you is prohibited. 


More information about the R-help mailing list