to_integer function

Round sample size and events