new.name package:mgcv R Documentation _O_b_t_a_i_n _a _n_a_m_e _f_o_r _a _n_e_w _v_a_r_i_a_b_l_e _t_h_a_t _i_s _n_o_t _a_l_r_e_a_d_y _i_n _u_s_e _D_e_s_c_r_i_p_t_i_o_n: 'gamm' works by transforming a GAMM into something that can be estimated by 'lme', but this involves creating new variables, the names of which should not clash with the names of other variables on which the model depends. This simple service routine checks a suggested name against a list of those in use, and if neccesary modifies it so that there is no clash. _U_s_a_g_e: new.name(proposed,old.names) _A_r_g_u_m_e_n_t_s: proposed: a suggested name old.names: An array of names that must not be duplicated _V_a_l_u_e: A name that is not in 'old.names'. _A_u_t_h_o_r(_s): Simon N. Wood simon.wood@r-project.org _R_e_f_e_r_e_n_c_e_s: _S_e_e _A_l_s_o: 'gamm ' _E_x_a_m_p_l_e_s: old <- c("a","tuba","is","tubby") new.name("tubby",old)