Skip to content

edit.data() read-only?

2 messages · Barry Rowlingson, (Ted Harding)

#
On Tue, Mar 26, 2013 at 10:09 AM, Ted Harding <Ted.Harding at wlandres.net> wrote:
Do you mean:

d=data.frame(x=1:10,y=runif(10))
edit(d)

? Because I don't have an edit.data function (maybe its windows only).
If you just want to view the data, don't assign it back. The "edit"
function only updates the data if you assign it back, as in:

d=edit(d)

so a 'read only' version would be:

invisible(edit(d))

except the user here can change the values in the cells, they just
don't go anywhere. Except into .Last.value if you decide you really
did want to get the values...

Barry
#
Sorry, I meant "data.entry()", not "edit.data()" (the latter due
to mental cross-wiring with "edit.data.frame()").

I think that Nello Blaser's suggestion of "View" may be what I
seek (when I can persuade it to find the font it seeks ... )!

With thanks, Barry.
Ted.
On 26-Mar-2013 10:20:59 Barry Rowlingson wrote:
-------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at wlandres.net>
Date: 26-Mar-2013  Time: 10:36:32
This message was sent by XFMail