Skip to content

Changing integer class

2 messages · Christophe Genolini, jim holtman

#
Hi all

I define a function with two methods, one for numeric or integer. 
Sometime, I need the numeric method to be applied on integer. So I try 
to change the class of the integer but it does not work... Does someone 
know why ?
[1] "integer"
[1] "integer"

Thanks

Christophe
#
?mode
int [1:10] 1 2 3 4 5 6 7 8 9 10
int [1:10] 1 2 3 4 5 6 7 8 9 10
num [1:10] 1 2 3 4 5 6 7 8 9 10
On 7/7/07, Christophe Genolini <cgenolin at u-paris10.fr> wrote: