Does not like it when z is not numeric or logical, produces NAs Warning in mean.default(z) : argument is not numeric or logical: returning NA Warning in stats::var(z) : NAs introduced by coercion