I have a column of catch rate data in a DF (df$catch.rate) that contains a combination of decimal values and zeros.
I would like to calculate the percentage of zero
nrow(df[df$catch.rate == 0,])/nrow(df)