Aggregate a numeric vector as a scalar numeric value