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"', 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'.

_E_x_a_m_p_l_e_s:

     typeof(2)
     mode(2)

