home *** CD-ROM | disk | FTP | other *** search
-
- _A_c_c_e_s_s _t_o _t_h_e _F_o_r_m_a_l _A_r_g_u_m_e_n_t_s
-
- formals(fun=sys.function(sys.parent()))
-
- _V_a_l_u_e:
-
- If fun is a function then the formal argument list to
- that function is returned. If fun is a character
- string then the function with that name is found and
- used. If fun is not specified then the function cal-
- ling formals is used.
-
- It is currently not possible to set the formals of a
- function.
-
- _S_e_e _A_l_s_o:
-
- args
-
- _E_x_a_m_p_l_e_s:
-
- length(formals(lm)) # the number of formal arguments
- names(formals(boxplot)) # formal arguments names
-
-