write.list            package:marrayInput            R Documentation

_D_a_t_a _O_u_t_p_u_t

_D_e_s_c_r_i_p_t_i_o_n:

     Writes information from a list into a text file.

_U_s_a_g_e:

     write.list(x, filename = "data", append = FALSE, closefile = TRUE, outfile)

_A_r_g_u_m_e_n_t_s:

       x: the list object to be written.

filename: a character string representing the file name.

  append: logical; if true, the data 'x' is appended to file
          'filename'.

closefile: logical indicating if the file connection should be closed.

 outfile: file name or connections.

_D_e_t_a_i_l_s:

     This function may be called recursively if there exists list
     structure within a list.

_A_u_t_h_o_r(_s):

     Jean Yee Hwa Yang

_S_e_e _A_l_s_o:

     'write.table', 'write'

_E_x_a_m_p_l_e_s:

     data(swirl)
     test <- list(A = 1:10, B= maM(swirl)[1:10,], C=list(x=1:10, y=1:4),
                  D = summary(maA(swirl[,1])))
     write.list(test, filename="test.txt")

