In the data frame, I want the means of each column. The issue is some columns have a bunch of zeroes on the bottom and these need to be neglected.
I can ignore the zeroes and look at one column with:
But I want a vector of every column's mean, gotten with sapply. Is there a reliable way to ignore the zeroes and get these values within a sapply function?