Re: [R] Adding dash-lines in R tables

2011-05-22 Thread David Winsemius
On May 22, 2011, at 2:41 PM, David Winsemius wrote: On May 22, 2011, at 2:22 PM, David Hajage wrote: moreover: > library(ascii) Seems strange that the ascii.interger function doesn't set the digits argument to 0: ascii.integer > ascii(as.integer(c(3,4,5))) |= | 3

Re: [R] Adding dash-lines in R tables

2011-05-22 Thread David Winsemius
On May 22, 2011, at 2:22 PM, David Hajage wrote: moreover: > library(ascii) Seems strange that the ascii.interger function doesn't set the digits argument to 0: > ascii(as.integer(c(3,4,5))) |= | 3.00 | 4.00 | 5.00 |= > ascii(as.integer(c(3,4,5)),

Re: [R] Adding dash-lines in R tables

2011-05-22 Thread David Hajage
moreover: > library(ascii) > M <- matrix(letters[1:10], 2) > M [,1] [,2] [,3] [,4] [,5] [1,] "a" "c" "e" "g" "i" [2,] "b" "d" "f" "h" "j" > ascii(M) | | a | c | e | g | i | b | d | f | h | j | > print(ascii(M), "rest") +---+---+---+---+---+ | a |

Re: [R] Adding dash-lines in R tables

2011-05-22 Thread Ista Zahn
Axel, you may also be interested in the ascii function (in the ascii package). The ascii version of David's example is library(ascii) #may need install.packages("ascii") first ascii(M) ascii(table(sample(1:10, 100, replace=TRUE))) Best, Ista On Sun, May 22, 2011 at 9:52 AM, David Winsemius wrote

Re: [R] Adding dash-lines in R tables

2011-05-22 Thread David Winsemius
On May 22, 2011, at 7:47 AM, Axel Urbiz wrote: is it possible to add dash lines to tables or matrices when they are printed? An example of what I'm looking for is this: library(Design) y <- sample(c(0,1),100, replace = TRUE) x <- rnorm(100) summary(y ~ x) There is a method for summary on for

[R] Adding dash-lines in R tables

2011-05-22 Thread Axel Urbiz
is it possible to add dash lines to tables or matrices when they are printed? An example of what I'm looking for is this: library(Design) y <- sample(c(0,1),100, replace = TRUE) x <- rnorm(100) summary(y ~ x) Thanks, Axel. [[alternative HTML version deleted]] ___