Here are several ways:
> a <- paste("String", 1:16)
> a
[1] "String 1" "String 2" "String 3"
"String 4" "String 5" "String 6"
[7] "String 7" "String 8" "String 9"
"String 10" "String 11" "String 12"
[13] "String 13" "String 14" "String 15"
"String 16"> matrix(a, length(a))
[,1]
[1,] "String 1"
[2,] "String 2"
. . .
[15,] "String 15"
[16,] "String 16"> t(t(a))
[,1]
[1,] "String 1"
[2,] "String 2"
. . .
[15,] "String 15"
[16,] "String 16"> b <- a
> dim(b) <- c(16, 1)
> b
[,1]
[1,] "String 1"
[2,] "String 2"
. . .
[15,] "String 15"
[16,] "String 16"> cat(a, sep="\n") # But no numbering
String 1
String 2
. . .
String 15
String 16
-------------------------------------
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352
-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of marekl
Sent: Tuesday, February 24, 2015 2:09 PM
To: r-help at r-project.org
Subject: [R] One column listing on wide monitors too
Hi,
it is probably very basic question, but I can't get answer still.
R shows listings in more columns on wider monitors. Like on this picture:
http://i.imgur.com/GLF70r9.png
Is there a way to set R to show listings like this, in one column only?
[1] "String 1"
[2] "String 2"
[3] "String 3"
...
[16] "String 16"
Thank you
--
View this message in context:
http://r.789695.n4.nabble.com/One-column-listing-on-wide-monitors-too-tp4703781.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.