write.matrix package:MASS R Documentation _W_r_i_t_e _a _M_a_t_r_i_x _o_r _D_a_t_a _F_r_a_m_e _D_e_s_c_r_i_p_t_i_o_n: Writes a matrix or data frame to a file or the console, using column labels and a layout respecting columns. _U_s_a_g_e: write.matrix(x, file = "", sep = " ", blocksize) _A_r_g_u_m_e_n_t_s: x: matrix or data frame. file: name of output file. The default ('""') is the console. sep: The separator between columns. blocksize: If supplied and positive, the output is written in blocks of 'blocksize' rows. Choose as large as possible consistent with the amount of memory available. _D_e_t_a_i_l_s: If 'x' is a matrix, supplying 'blocksize' is more memory-efficient and enables larger matrices to be written, but each block of rows might be formatted slightly differently. If 'x' is a data frame, the conversion to a matrix may negate the memory saving. _S_i_d_e _E_f_f_e_c_t_s: A formatted file is produced, with column headings (if 'x' has them) and columns of data. _R_e_f_e_r_e_n_c_e_s: Venables, W. N. and Ripley, B. D. (2002) _Modern Applied Statistics with S._ Fourth edition. Springer. _S_e_e _A_l_s_o: 'write.table'