getEnvironment            package:svMisc            R Documentation

_G_e_t _a_n _e_n_v_i_r_o_n_m_e_n_t, _k_n_o_w_i_n_g _i_t_s _p_o_s_i_t_i_o_n

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

     Given a position in the search path, the corresponding environment
     is returned.

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

     getEnvironment(pos)

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

     pos: The position in the search path. If 'pos = -1', then the
          parent environment is returned.

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

     An environment.

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

     Philippe Grosjean <phgrosjean@sciviews.org>

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

     getEnvironment(1)
     getEnvironment(length(search())) # base environment

