Dear all R users,
I have a query on Edit function. Suppose I have a data frame named data.
I can use EDIT function to see the materials contained in data, by using the
command:
edit(data)
But when I close the window then again the materials contained in data is
displayed in
On Wed, 7 Jun 2006, stat stat wrote:
Dear all R users,
I have a query on Edit function. Suppose I have a data frame named
data. I can use EDIT function to see the materials contained in data,
by using the command:
edit(data)
But when I close the window then again the materials
fix(data)
will invoke edit(data) and store changes you make in data without
displaying anything.
stat stat schrieb:
Dear all R users,
I have a query on Edit function. Suppose I have a data frame named
data. I can use EDIT function to see the materials contained in data, by
using
If you want to change the data,_fix_ will be a good option.But if you
just want to browse the data ,then invisible(edit(data)) is better
one.
I remember this question showed up some time ago.
2006/6/7, Ulrich Keller [EMAIL PROTECTED]:
fix(data)
will invoke edit(data) and store changes you
stat
Sent: Wednesday, June 07, 2006 8:36 AM
To: r-help@stat.math.ethz.ch
Subject: [R] Edit function
Dear all R users,
I have a query on Edit function. Suppose I have a data
frame named data. I can use EDIT function to see the
materials contained in data, by using the command
[Pikounis, Bill [CNTUS]]
view - function(x) {
warnopt - options()$warn
options(warn=-1)
on.exit({sink(); options(warn=warnopt)})
edit(x)
invisible()
}
I'm surprised by the necessity of sink(). Presuming it is necessary
indeed, the above could be simplified a bit like this