[R] how to make read-only data frames?

From: Dan Kelley <Dan.Kelley_at_dal.ca>
Date: Fri, 11 Jan 2008 06:13:28 -0800 (PST)

QUESTION: is there a way to make objects (e.g. data frames) read-only?

BACKGROUND: I am writing some functions that use a data frame (frequencies of tidal constituents) that I want to be read-only. I can see how to accomplish this within a single function (just define the data in the function), but I'm not sure how to share read-only values between (un-nested) functions. Is there a more elegant method than duplicating the creation of the data frame in each function?

-- 
View this message in context: http://www.nabble.com/how-to-make-read-only-data-frames--tp14756183p14756183.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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 Fri 11 Jan 2008 - 14:17:21 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 Sat 12 Jan 2008 - 05:30:06 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