Displaying 1 result from an estimated 1 matches for "tmp_b".
Did you mean:
tmp__
2006 Feb 24
1
(Newbie) Aggregate for NA values
...ch influence might the NA's have
had, if they were included, and is excluding them from the means
causing some sort of bias. So I want the summary stat for the NA's
also.
Here is a simple example session (edited to remove the typos I made,
comments added later):
> tmp_a <- 1:10
> tmp_b <- rep(1:5,2)
> tmp_c <- rep(1:2,5)
> tmp_d <- c(1,1,1,2,2,2,3,3,3,4)
> tmp_df <- data.frame(tmp_a,tmp_b,tmp_c,tmp_d);
> tmp_df$tmp_c[9:10] <- NA ;
> tmp_df
tmp_a tmp_b tmp_c tmp_d
1 1 1 1 1
2 2 2 2 1
3 3 3 1 1
4...