typeof                 package:base                 R Documentation

_T_h_e _T_y_p_e _o_f _a_n _O_b_j_e_c_t

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

     'typeof' determines the (R internal) type or storage mode of any
     object

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

     typeof(x)

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

       x: any R object.

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

     A character string.  The possible values are listed in the
     structure 'TypeTable' in 'src/main/util.c'. Current values are the
     vector types '"logical"', '"integer"', '"double"', '"complex"',
     '"character"', '"raw"' and '"list"', '"NULL"', '"closure"'
     (function), '"special"' and '"builtin"' (basic functions and
     operators), '"environment"', '"S4"' (some S4 objects) and others
     that are unlikely to be seen at user level ('"symbol"',
     '"pairlist"', '"promise"', '"language"', '"char"', '"..."',
     '"any"', '"expression"', '"externalptr"', '"bytecode"' and
     '"weakref"').

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

     'mode', 'storage.mode'.

     'isS4' to determine if an object has an S4 class.

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

     typeof(2)
     mode(2)

