Proportions with mean()
One of the most common tasks I want to do is calculate the proportion of observations (e.g., rows in a data set) that meet a particular condition. For example, what is the proportion of missing data, or people over the age of 18?
There is a suprisingly easy solution to ... [Read more...]