etained.
So, I appear to be on my way again.
Thanx again, DaveT.
*
>-Original Message-
>From: jim holtman [mailto:[EMAIL PROTECTED]
>Sent: November 20, 2007 04:21 PM
>To: Thompson, David (MNR)
>Cc: r-help@r-project.org
>Subject: Re: [
7;dbh.n')] <- 0
>
> Thank you for your time, DaveT.
> *
>
> >-----Original Message-
> >From: jim holtman [mailto:[EMAIL PROTECTED]
> >Sent: November 20, 2007 02:25 PM
> >To: Thompson, David (MNR)
> >Cc: r-help@r-p
*
>-Original Message-
>From: jim holtman [mailto:[EMAIL PROTECTED]
>Sent: November 20, 2007 02:25 PM
>To: Thompson, David (MNR)
>Cc: r-help@r-project.org
>Subject: Re: [R] Process multiple columns of data.frame
>
>It really depends on what you want to set th
It really depends on what you want to set the values that contain NAs
to for the various type of the columns. Do you always want numerics
=0, characters ="", and factors =whatever? Do you want to do this for
all the columns in a dataframe? If you want to it for all the columns
in a matrix, it is
Hello,
How do I do the following more concisely?
Bout[is.na(Bout$bd.n), 'bd.n'] <- 0
Bout[is.na(Bout$ht.n), 'ht.n'] <- 0
Bout[is.na(Bout$dbh.n), 'dbh.n'] <- 0
Would the form of such a command be different
between numeric, character and factor columns?
. . . between data.f
5 matches
Mail list logo