• as.integer(round(x)) is safer than as.integer(x) due to truncation in the latter.