[R] JRG Console Output

From: Bret Collier <bret_at_tamu.edu>
Date: Tue 14 Feb 2006 - 05:24:22 EST


All,
I had a question about the JGR console and whether or not I can manipulate the location where line wrapping occurs. I have searched 'JGR' in the R listserve archives and attempted to find console manipulation on the JGR website to no avail and could use some direction.

TIA, Bret

As an example, the below output wraps every 4th value, leaving about 2/3 of the console empty.

> rnorm(20, 50, 17)

 [1] 43.42240 39.94807  8.94276 15.19369
 [5] 82.56500 17.96678 80.58936 48.61693
 [9] 75.92249 71.86615 53.39025 24.08080
[13] 23.92690 35.96344 61.29200 63.37290 [17] 77.71882 56.54847 70.16172 51.61530

where the below increases the 'after decimal' range 1 unit and cuts back to 3 values per line.

> rnorm(1000, 50, 17)

   [1]  64.805808  54.770722  46.552925
   [4]  34.371987  61.971183  37.327260
   [7]  60.403990  47.783683  51.744272
  [10]  32.671062  31.395127  69.085938
  [13]  77.554024  48.579639  48.111326

  [16] 44.994786 65.241722 65.852035
  [19] 53.254482 43.217719 30.255150

Reading in some data, the 'mydat' line extends across the console, but the output is wrapped around again?

> mydat<-data.frame(ID, Year = factor(Year), Dayrelease, Agerelease,
Survivorship, Entry, Exit, Fate, Gender)
> mydat

       ID Year Dayrelease Agerelease
1   16240 1996        205         95
2   16319 1996        205         88
3   16378 1996        248        108
.

.
.
576  3094 2005        251        136
577  2667 2005        264        861
578  3035 2005        264        497
    Survivorship Entry Exit Fate Gender
1            164   205  369    1      0
2            140   205  345    1      0
3            100   248  348    1      0
4            204   241  445    1      0
5            227   219  446    1      0


>version

platform i386-pc-mingw32

arch     i386           
os       mingw32        
system   i386, mingw32  
status                  
major    2              
minor    2.1            
year     2005           
month    12             
day      20             
svn rev  36812          

language R

R-help@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 Received on Tue Feb 14 05:29:09 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:29 EST