Hi, Duncan,
On your and William Dunlap’s suggestion, I tried this:
cat(sep="\n", strwrap("my long character string")),
and it works very well. Thanks so much for your help.
Lisa
--
View this message in context:
http://r.789695.n4.nabble.com/Line-feed-for-a-long-character-string-tp3515824p3
On 11/05/2011 4:46 PM, Lisa wrote:
Dear all,
Does anyone know how to make a line feed automatically based on the width of
console window? For example, when you cat() a long character string just
like this:
You can use the strwrap() function to insert line breaks. If it's not
under your contr
Dear all,
Does anyone know how to make a line feed automatically based on the width of
console window? For example, when you cat() a long character string just
like this:
cat("Seminar series is an opportunity for students to learn about ongoing
researches in the field of mathematics, computer sci
3 matches
Mail list logo