write.arff package:foreign R Documentation _W_r_i_t_e _D_a_t_a _i_n_t_o _A_R_F_F _F_i_l_e_s _D_e_s_c_r_i_p_t_i_o_n: Writes data into Weka Attribute-Relation File Format (ARFF) files. _U_s_a_g_e: write.arff(x, file, eol = "\n", relation = deparse(substitute(x))) _A_r_g_u_m_e_n_t_s: x: the data to be written, preferably a matrix or data frame. If not, coercion to a data frame is attempted. file: either a character string naming a file, or a connection. '""' indicates output to the standard output connection. eol: the character(s) to print at the end of each line (row). relation: The name of the relation to be written in the file. _D_e_t_a_i_l_s: 'relation' will be passed through 'make.names' before writing to the file, in an attempt to it them acceptable to Weka, and column names what do not start with an alphabetic character will have 'X' prepended. However, the references say that ARFF files are ASCII files, and that encoding is not enforced. _R_e_f_e_r_e_n_c_e_s: Attribute-Relation File Format _S_e_e _A_l_s_o: 'read.arff' _E_x_a_m_p_l_e_s: write.arff(iris, file = "")