[R] list(0) to integer
fren2 at yahoo.com
Mon Dec 27 12:18:53 CET 2004
I've another question :-)
I would like to transform a list to a integer.
I must be sure that the number entered by the user is
an integer! Thus, I've made :
cat("Effectif des populations (integer):")
if (is.integer(n[])==TRUE) break
print("L'effectif des population doit etre un
That doesn't work of course but I've no idea to do
this. How verify that n[] is an integer an
transform them as an integer (as.integer(n) doesn't
work!) Someone can help me? Thanks!
More information about the R-help