-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Anders Schwartz Corr
Sent: Monday, May 16, 2005 10:38 PM
To: r-help@stat.math.ethz.ch
Subject: [R] NA erase your data trick
Oops,
I just erased all my data using this gizmo that I thought
Anders Schwartz Corr wrote:
Oops,
I just erased all my data using this gizmo that I thought would replace -9
with NA.
A) Can I get my tcn5 back?
As you got it the first time. There is nothing like undo.
B) How do I do it right next time, I learned my lesson, I'll never do it
again, I promise!
By
Anders Schwartz Corr wrote:
Oops,
I just erased all my data using this gizmo that I thought would replace -9
with NA.
A) Can I get my tcn5 back?
Not if you don't have it backed up somewhere else.
I wouldn't recommend keeping your only copy of anything in an R
workspace. It's too easy to
Hi
Maybe
tcn5[tcn5 == -9] - NA
if tcn5 is matrix
mat-matrix(rnorm(100),10,10)
mat[5,6:7]- -9
mat[mat == -9]-NA
Read some intro on data manipulation, it helps you to avoid
thinking in loops
Cheers
Petr
On 17 May 2005 at 1:37, Anders Schwartz Corr wrote:
Oops,
I just erased all my
On Tue, 17 May 2005 08:33:00 +0200
Uwe Ligges [EMAIL PROTECTED] wrote:
Anders Schwartz Corr wrote:
Oops,
I just erased all my data using this gizmo that I thought would replace -9
with NA.
A) Can I get my tcn5 back?
As you got it the first time. There is nothing like undo.
If
On Tue, 17 May 2005, Uwe Ligges wrote:
Anders Schwartz Corr wrote:
Oops,
I just erased all my data using this gizmo that I thought would replace -9
with NA.
A) Can I get my tcn5 back?
As you got it the first time. There is nothing like undo.
B) How do I do it right next time, I learned my lesson,