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

     As from R 2.4.0, '"S4"' can occur to refer to some objects with
     formal (S4) classes.

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

     'mode', 'storage.mode'.

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

     typeof(2)
     mode(2)

