I have a matrix which has colnames and I would like to send this matrix using sendmailR. How can I convert this simple matrix to a format which can be used as the body variable in sendmailR? I see how I can create a file attachment using mime_part but I would like to send the matrix in the body of the email. The matrix looks like: ABD DEF GHI JKL MNO TOT [1,] 0.44 0.81 1.67 0.37 0.31 -1.18 All the conversions I have tried end up sending the matrix without the colnames. Thanks. [[alternative HTML version deleted]]
I think it'd be easier and safer to save the matrix, either as an .Rdata binary or as a text file, zip that file, and use the sendmailR tools to attach the file to your message. Fuchs Ira-3 wrote> I have a matrix which has colnames and I would like to send this matrix > using sendmailR. How can I convert this simple matrix to a format which > can be used as the body variable in sendmailR? I see how I can create a > file attachment using mime_part but I would like to send the matrix in the > body of the email. > > The matrix looks like: > > ABD DEF GHI JKL MNO TOT > [1,] 0.44 0.81 1.67 0.37 0.31 -1.18 > > All the conversions I have tried end up sending the matrix without the > colnames. > > Thanks. > > > [[alternative HTML version deleted]] > > ______________________________________________> R-help@> mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- View this message in context: http://r.789695.n4.nabble.com/Sending-a-matrix-in-an-email-tp4680663p4680675.html Sent from the R help mailing list archive at Nabble.com.
I have a matrix which has colnames and I would like to send this matrix using sendmailR. How can I convert this simple matrix to a format which can be used as the body variable in sendmailR? I see how I can create a file attachment using mime_part but I would like to send the matrix in the body of the email. The matrix looks like: ABD DEF GHI JKL MNO TOT [1,] 0.44 0.81 1.67 0.37 0.31 -1.18 All the conversions I have tried end up sending the matrix without the colnames. Thanks.
On 18 November 2013 05:37, Ira Fuchs <irafuchs at gmail.com> wrote:> I have a matrix which has colnames and I would like to send this matrix using sendmailR. How can I convert this simple matrixMy 1 cent; In case of large objects or full session, suitable for attachment; RData might be more convenient, i.e., ?save or ?save.image