david
2012-Mar-21 03:13 UTC
[R] i dont know what function do i have to make for ("The number of lines in the body of the email")
i tried to make function about "The number of lines in the body of the email" and i have three values which are emailtestset1, emailtestset2, and emails. what i have to do? -- View this message in context: http://r.789695.n4.nabble.com/i-dont-know-what-function-do-i-have-to-make-for-The-number-of-lines-in-the-body-of-the-email-tp4491165p4491165.html Sent from the R help mailing list archive at Nabble.com.
David Winsemius
2012-Mar-21 08:28 UTC
[R] i dont know what function do i have to make for ("The number of lines in the body of the email")
On Mar 20, 2012, at 11:13 PM, david wrote:> i tried to make function about "The number of lines in the body of > the email" > and i have three values which are emailtestset1, emailtestset2, and > emails. > what i have to do? >I sent a private message indicating that I found that message cryptic in the extreme. I got a private message from which I concluded with very high probability that this is a homework problem and advised the questioner regarding R help's guidance regarding homework. -- David Winsemius, MD West Hartford, CT
mlell08
2012-Mar-21 09:29 UTC
[R] i dont know what function do i have to make for ("The number of lines in the body of the email")
Perhaps R's function readLines is the right thing for you. AFAIK it returns a vector of strings containing the lines of th email. Or you could try to count the occurence of the newline character '\r' (Unicode 0xA) Regards!
Apparently Analagous Threads
- chan_sip.c: That's odd... Got a response on a call we dont know about.
- dont know how to use :include
- Killing an open file doesnt work? (i dont know how to..!)
- testparm is telling me something but i dont know what.
- printing a single row, but dont know which row to print