elastic1                package:DAAG                R Documentation

_E_l_a_s_t_i_c _B_a_n_d _D_a_t_a _R_e_p_l_i_c_a_t_e_d

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

     The 'elastic1' data frame has 7 rows and 2 columns giving, for
     each amount by which an elastic band is stretched over the end of
     a ruler, the distance that the band traveled when released.

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

     elastic1

_F_o_r_m_a_t:

     This data frame contains the following columns:

     _s_t_r_e_t_c_h the amount by which the elastic band was stretched

     _d_i_s_t_a_n_c_e the distance traveled

_S_o_u_r_c_e:

     J. H. Maindonald

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

     plot(elastic1)

     print("Inline Functions - Example 12.2.2")
     sapply(elastic1, mean)
     pause()

     sapply(elastic1, function(x)mean(x))
     pause()

     sapply(elastic1, function(x)sum(log(x)))
     pause()

     print("Data Output - Example 12.3.2")
     write.table(elastic1, file="bandsframe.txt")

