Skip to content
Prev 26925 / 398500 Next

replace NA´s

On Mon, Jan 13, 2003 at 05:15:02PM +0000, juan pablo perez wrote:
I use lapply
a  b
1  1 NA
2  2  2
3 NA  3
4  4  4
a       b
1 1.00000 3.14159
2 2.00000 2.00000
3 3.14159 3.00000
4 4.00000 4.00000

That will generate a warning message for each non-numeric column in
your data frame.  A tidier way is left as an exercise. ;)

Cheers

Jason
Message-ID: <20030114091126.B23118@camille.indigoindustrial.co.nz>
In-Reply-To: <F1729xT3lEmFWqbTYP0000034fd@hotmail.com>; from valdentro@hotmail.com on Mon, Jan 13, 2003 at 05:15:02PM +0000