fixed int() -> as.integer() in R