[R] print one character on several lines
Hua Li
hualihua at yahoo.com
Thu Jun 19 23:33:30 CEST 2008
Hi All,
I'm wondering how I can print one large/long character on several lines so that the output will not overflow a page. Setting fill be TRUE or even numbers does not help. An example is below:
ipuFile <- file("input.txt", "w")
cat("This is a very long character and I want to print it on several lines. This is a very long character and I want to print it on several lines.",fill = TRUE,file = ipuFile)
close(ipuFile)
Thanks!
Hua
More information about the R-help
mailing list