Skip to content
Prev 10507 / 63421 Next

bug or feature? (PR#4150)

Dear Axel,
At 01:37 PM 9/13/2003 +0200, axel.benz@iao.fhg.de wrote:
Coercion to a common mode takes place in many contexts; for example:

         > 1 & TRUE
         [1] TRUE

To distinguish between numbers and characters you can, of course, use the 
predicates is.numeric() and is.character(), or test that the mode() of the 
arguments is the same.

John
-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox@mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox