I have a dataframe, and I want to produce a table of summary statistics including number of valid numeric values, mean and sd by group for each of three columns. I can\'t seem
colSums(!is.na(x)) should work.
colSums(!is.na(x))