[R] integer

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Nov 2 11:36:27 CET 2004

Ludovic Tambour wrote:

> Hello,
> I need to use "R" to determine parameters which are integers. How I can do
> this, please ?

What so you mean with "parameters"? In which context?

To check whether a numeric vector "x" contains only integers, you can try

all.equal(as.integer(x), x)

Uwe Ligges

> Ludo
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

More information about the R-help mailing list