Re: [R] Difficult subset challenge

2011-12-10 Thread Joshua Wiley
Hi Noah, I am unclear if the 0s should be standardized or not---I am assuming since you want them excluded from the calculation of the mean and SD, you do not want (0 - M) / sigma. If that is the case, here is an example: ## read in your data ## FYI: providing via dput() would be easier next t

[R] Difficult subset challenge

2011-12-10 Thread Noah Silverman
Hi, I'm having difficulty coming up with a good way to subest some data to generate statistics. My data frame has multiple observations by group. Here is an overly-simplified toy example of the data == codev1 v2 G1 1.2 2.3 G1 0