toCamelCase             package:R.utils             R Documentation

_C_o_n_v_e_r_t_s _a _s_t_r_i_n_g _o_f _w_o_r_d_s _i_n_t_o _a _m_e_r_g_e_d _c_a_m_e_l-_c_a_s_e_d _w_o_r_d

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

     Converts a string of words into a merged camel-cased word, e.g. "a
     short black" is converted to "aShortBlack".

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

     ## Default S3 method:
     toCamelCase(s, capitalize=FALSE, split="[      ]+", ...)

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

       s: A 'character' string.

capitalize: If 'TRUE', the first letter will be in upper case,
          otherwise it will be in lower case.

   split: A pattern used to identify words.  See 'strsplit'() for more
          details.

     ...: Not used.

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

     Returns a 'character' string.

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

     Henrik Bengtsson (<URL: http://www.braju.com/R/>)

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

     'capitalize' and 'decapitalize'. 'chartr'().

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

       s <- "hello world"
       print(toCamelCase(s))  # helloWorld
       stopifnot(toCamelCase(s) == toCamelCase(toCamelCase(s)))

