Re: [R] edit.data() read-only?
On Tue, Mar 26, 2013 at 10:09 AM, Ted Harding ted.hard...@wlandres.net wrote: Greetings All. The function edit.data() allows a convenient spreadsheet-like view of a dataframe with too many rows/columns to fit on the screen (especially when there are many columns). Very useful when scanning through a dataset (row column are conveniently identified by the labels at the side and above). 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). However, there seens to be no option to set it read-only on start-up, with the consequence that a clumsy key-press or mouse-click could cause a change in the data which would then be stored after quitting edit.data(). Is there a possibility of a read-only option? Or some other function which could offer similar viewing capability without the risk of data change? 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 __ R-help@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.
Re: [R] edit.data() read-only?
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: On Tue, Mar 26, 2013 at 10:09 AM, Ted Harding ted.hard...@wlandres.net wrote: Greetings All. The function edit.data() allows a convenient spreadsheet-like view of a dataframe with too many rows/columns to fit on the screen (especially when there are many columns). Very useful when scanning through a dataset (row column are conveniently identified by the labels at the side and above). 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). However, there seens to be no option to set it read-only on start-up, with the consequence that a clumsy key-press or mouse-click could cause a change in the data which would then be stored after quitting edit.data(). Is there a possibility of a read-only option? Or some other function which could offer similar viewing capability without the risk of data change? 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 __ R-help@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. - E-Mail: (Ted Harding) ted.hard...@wlandres.net Date: 26-Mar-2013 Time: 10:36:32 This message was sent by XFMail __ R-help@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.
Re: [R] edit.data() read-only?
Try ?View() -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Ted Harding Sent: Dienstag, 26. März 2013 11:09 To: r-help@r-project.org Subject: [R] edit.data() read-only? Greetings All. The function edit.data() allows a convenient spreadsheet-like view of a dataframe with too many rows/columns to fit on the screen (especially when there are many columns). Very useful when scanning through a dataset (row column are conveniently identified by the labels at the side and above). However, there seens to be no option to set it read-only on start-up, with the consequence that a clumsy key-press or mouse-click could cause a change in the data which would then be stored after quitting edit.data(). Is there a possibility of a read-only option? Or some other function which could offer similar viewing capability without the risk of data change? With thanks, Ted. - E-Mail: (Ted Harding) ted.hard...@wlandres.net Date: 26-Mar-2013 Time: 10:08:58 This message was sent by XFMail __ R-help@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@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.
Re: [R] edit.data() read-only?
Thanks! ?View does indeed state The object is then viewed in a spreadsheet-like data viewer, a read-only version of 'data.entry', which is what I was looking for! Ted. On 26-Mar-2013 10:23:59 Blaser Nello wrote: Try ?View() -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Ted Harding Sent: Dienstag, 26. März 2013 11:09 To: r-help@r-project.org Subject: [R] edit.data() read-only? Greetings All. The function edit.data() allows a convenient spreadsheet-like view of a dataframe with too many rows/columns to fit on the screen (especially when there are many columns). Very useful when scanning through a dataset (row column are conveniently identified by the labels at the side and above). However, there seens to be no option to set it read-only on start-up, with the consequence that a clumsy key-press or mouse-click could cause a change in the data which would then be stored after quitting edit.data(). Is there a possibility of a read-only option? Or some other function which could offer similar viewing capability without the risk of data change? With thanks, Ted. - E-Mail: (Ted Harding) ted.hard...@wlandres.net Date: 26-Mar-2013 Time: 10:08:58 This message was sent by XFMail __ R-help@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. - E-Mail: (Ted Harding) ted.hard...@wlandres.net Date: 26-Mar-2013 Time: 10:38:34 This message was sent by XFMail __ R-help@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.