Dear R, Run following commands and you will find last two command result is same.
n1 <- 1 print(n1) typeof(n1) is.integer(n1) is.numeric(n1) n1 <- as.integer(n1) print(n1) typeof(n1) is.integer(n1) is.numeric(n1) Regards, Agha Babar Khan [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.