An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20050726/0b91495b/attachment.pl
text on some lines
4 messages · Navarre Sabine, Uwe Ligges, Sophie Tricaud-Vialle +1 more
Navarre Sabine wrote:
Hi, I would like to write text on 2 lines for example. For example, if you have a long sentence and you want to cut it at the 45 caracter and put the continuation underneath! Is it possible?
Do you mean for output to console / in plots? Simply insert a "\n" (newline), for example. Uwe Ligges
Thanks Sabine --------------------------------- [[alternative HTML version deleted]]
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Hello ! I just start in using R, and I have already questions... I want to use the arules package : I have installed the package, and have the arules package 's reference manual, but I haven't yet understood how to use it. I have my data (from Excel, .txt), that I have read on R : I think (hope !) it's ok Then, what must I do first to analyse my data (to identify the association rules) ? I suppose I have to "transform" my file, but how ? Which commands must I use to ? Thanks for all ! Sophie !
On Tue, 26 Jul 2005, Uwe Ligges wrote:
Navarre Sabine wrote:
I would like to write text on 2 lines for example. For example, if you have a long sentence and you want to cut it
at the 45 caracter and put the continuation underneath!
Is it possible?
Do you mean for output to console / in plots? Simply insert a "\n" (newline), for example.
And strwrap() will help you insert it in the right place, e.g.
x <- "For example, if you have a long sentence and you want to cut it at the 45 caracter and put the continuation underneath!" strwrap(x, 45)
[1] "For example, if you have a long sentence" [2] "and you want to cut it at the 45 caracter" [3] "and put the continuation underneath!"
paste(strwrap(x, 45), collapse="\n")
[1] "For example, if you have a long sentence\nand you want to cut it at the 45 caracter\nand put the continuation underneath!" the latter for use when plotting.
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595