isNumeric               package:limma               R Documentation

_T_e_s_t _f_o_r _N_u_m_e_r_i_c _A_r_g_u_m_e_n_t

_D_e_s_c_r_i_p_t_i_o_n:

     Test whether argument is numeric or a data.frame with numeric
     columns.

_U_s_a_g_e:

     isNumeric(x)

_A_r_g_u_m_e_n_t_s:

       x: any object

_D_e_t_a_i_l_s:

     This function is used to check the validity of arguments for
     numeric functions. It is an attempt to emulate the behavior of
     internal generic math functions.

     'isNumeric' differs from 'is.numeric' in that data.frames with all
     columns numeric are accepted as numeric.

_V_a_l_u_e:

     'TRUE' or 'FALSE'

_A_u_t_h_o_r(_s):

     Gordon Smyth

_S_e_e _A_l_s_o:

     'is.numeric', 'Math'

_E_x_a_m_p_l_e_s:

     isNumeric(3)
     isNumeric("a")
     x <- data.frame(a=c(1,1),b=c(0,1))
     isNumeric(x)   # TRUE
     is.numeric(x)  # FALSE

