Re: [Rd] Subset of a 'table' divided by a 'table' is a 'table', but printed by 'print.default'

2013-04-30 Thread Duncan Murdoch
On 13-04-30 3:38 AM, Suharto Anggono Suharto Anggono wrote: This is just info. I recently got something like this. x <- factor(c("A","A","B","B"), levels=c("A","B")) y <- factor(c("a","b","a","b"), levels=c("a","b")) table(x, y)[, "a"] / table(x) x A B 0.5 0.5 attr(,"class") [1] "table"

Re: [Rd] Subset of a 'table' divided by a 'table' is a 'table', but printed by 'print.default'

2013-04-30 Thread Duncan Murdoch
On 13-04-30 6:51 AM, Barry Rowlingson wrote: On Tue, Apr 30, 2013 at 10:49 AM, Duncan Murdoch wrote: So it looks like the bug is in the implementation of "/". Either it should drop the class, or it should set the object bit. The difference in printing between auto-printing and explicit print

Re: [Rd] Subset of a 'table' divided by a 'table' is a 'table', but printed by 'print.default'

2013-04-30 Thread Barry Rowlingson
On Tue, Apr 30, 2013 at 10:49 AM, Duncan Murdoch wrote: > So it looks like the bug is in the implementation of "/". Either it > should drop the class, or it should set the object bit. > > The difference in printing between auto-printing and explicit printing > may be worth addressing, but really

[Rd] performance issue with as.Date

2013-04-30 Thread Paul.Ryan
We encounted a performance problem when a large number of R scripts are run simulatanously. A large number of stat() system calls to /etc/timezone was limiting how many scripts could be run effectively. I traced the problem to as.Date.character where strptime() is called without a timezone arg

Re: [Rd] Verbose output from R CMD check

2013-04-30 Thread dpleydell
Both the following lines return 0 hits grep printf *.c|grep -v Rprintf|grep -v fprintf grep puts *.c Is there some way to detect what has caused this warning about puts? It's not a call to 'puts' or 'printf' because there are none. Longshot: grep '[^Rf]printf' *.c Peter's longshot hit the b

Re: [Rd] Subset of a 'table' divided by a 'table' is a 'table', but printed by 'print.default'

2013-04-30 Thread Duncan Murdoch
On 13-04-30 3:38 AM, Suharto Anggono Suharto Anggono wrote: This is just info. I recently got something like this. x <- factor(c("A","A","B","B"), levels=c("A","B")) y <- factor(c("a","b","a","b"), levels=c("a","b")) table(x, y)[, "a"] / table(x) x A B 0.5 0.5 attr(,"class") [1] "table"

[Rd] Subset of a 'table' divided by a 'table' is a 'table', but printed by 'print.default'

2013-04-30 Thread Suharto Anggono Suharto Anggono
This is just info. I recently got something like this. > x <- factor(c("A","A","B","B"), levels=c("A","B")) > y <- factor(c("a","b","a","b"), levels=c("a","b")) > table(x, y)[, "a"] / table(x) x A B 0.5 0.5 attr(,"class") [1] "table" The printing indicates that the result is of class 'table'