Re: [R] NA Replacement by lowest value?

2010-01-28 Thread Joel Fürstenberg-Hägg
Hi Jim, That's what Pauls suggested too, works great! Best, Joel > Date: Thu, 28 Jan 2010 20:57:57 +1100 > From: j...@bitwrit.com.au > To: joel_furstenberg_h...@hotmail.com > CC: r-help@r-project.org > Subject: Re: [R] NA Replacement by lowest value? > &

Re: [R] NA Replacement by lowest value?

2010-01-28 Thread Jim Lemon
On 01/28/2010 08:35 PM, Joel Fürstenberg-Hägg wrote: Hi all, I need to replace missing values in a matrix by 10 % of the lowest available value in the matrix. I've got a function I've used earlier to replace negative values by the lowest value, in a data frame, but I'm not sure how to modif

Re: [R] NA Replacement by lowest value?

2010-01-28 Thread Joel Fürstenberg-Hägg
Thanks a lot Paul!! Best, Joel > Date: Thu, 28 Jan 2010 10:48:37 +0100 > From: p.hiems...@geo.uu.nl > To: joel_furstenberg_h...@hotmail.com > CC: r-help@r-project.org > Subject: Re: [R] NA Replacement by lowest value? > > Joel Fürstenberg-Hägg wrote: > > Hi a

Re: [R] NA Replacement by lowest value?

2010-01-28 Thread Paul Hiemstra
Joel Fürstenberg-Hägg wrote: Hi all, I need to replace missing values in a matrix by 10 % of the lowest available value in the matrix. I've got a function I've used earlier to replace negative values by the lowest value, in a data frame, but I'm not sure how to modify it... nonNeg =

[R] NA Replacement by lowest value?

2010-01-28 Thread Joel Fürstenberg-Hägg
Hi all, I need to replace missing values in a matrix by 10 % of the lowest available value in the matrix. I've got a function I've used earlier to replace negative values by the lowest value, in a data frame, but I'm not sure how to modify it... nonNeg = as.data.frame(apply(orig.df, 2,