Hi everyone,
Im looking for a clever bit of code to replace NAs with a specific score
depending on an indicator variable.
I can see how to do it using lots of if statements but Im sure there most
be a neater, better way of doing it.
Any ideas at all will be much appreciated, Im dreadin
> first ddply result did I see that some sort of misregistration had occurred;
> Better with:
>
> res <-ddply(egraw2, .(category), .fun=function(df) {
> sapply(df,
> function(x) {mnx <- mean(x, na.rm=TRUE);
> sapply(x, function(z) if
On Sep 1, 2010, at 10:19 AM, David Winsemius wrote:
On Sep 1, 2010, at 9:55 AM, David Winsemius wrote:
On Sep 1, 2010, at 9:20 AM, Chris Howden wrote:
Hi everyone,
I’m looking for a clever bit of code to replace NA’s with a
specific score
depending on an indicator variable.
I can s
On Sep 1, 2010, at 9:55 AM, David Winsemius wrote:
On Sep 1, 2010, at 9:20 AM, Chris Howden wrote:
Hi everyone,
I’m looking for a clever bit of code to replace NA’s with a
specific score
depending on an indicator variable.
I can see how to do it using lots of if statements but I’m sur
On Sep 1, 2010, at 9:20 AM, Chris Howden wrote:
Hi everyone,
I’m looking for a clever bit of code to replace NA’s with a specific
score
depending on an indicator variable.
I can see how to do it using lots of if statements but I’m sure
there most
be a neater, better way of doing it.
Hi everyone,
Im looking for a clever bit of code to replace NAs with a specific score
depending on an indicator variable.
I can see how to do it using lots of if statements but Im sure there most
be a neater, better way of doing it.
Any ideas at all will be much appreciated, Im dreadin
6 matches
Mail list logo