Close the elements of x to proportions

close_elts(x, na.rm = FALSE)