Re: [Rd] user error described in the FAQ (was [BUG?] xyplot in loop does not work)

2004-11-22 Thread Thomas Lumley
On Mon, 22 Nov 2004, Valery Khamenya wrote:
Do you mean, Dr.Ripley, one has to carefully read this
100-pages-FAQ-manual  one time per year or even more often?
I assume he means you should read it *before asking questions*, or at 
least before suggesting that something is a [BUG?]. It does 
have an index, one entry of which is
  7.22 Why do lattice/trellis graphics not work?

Reading the FAQ index is no more work than you are asking other people to 
do, and it will get you an answer even faster.  Of course, you *did* get 
an answer to your question, very quickly, so reading the FAQ may seem 
inefficient.


I guess this FAQ-entry about fully intuitive behaviour of xyplot came
last year, right?
Well, the behaviour predates the R implementation and is described in 
help(xyplot).  Obviously no-one except you thinks it it fully intuititve, 
or it wouldn't be in the FAQ.

-thomas
Thomas Lumley   Assoc. Professor, Biostatistics
[EMAIL PROTECTED]   University of Washington, Seattle
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] user error described in the FAQ (was [BUG?] xyplot in loop does not work)

2004-11-22 Thread Deepayan Sarkar
On Monday 22 November 2004 03:56, Valery Khamenya wrote:
> > Please DO as the posting guide asks and read the FAQ before
> > posting. Do read Q7.22 (and its answer).
>
> thank you for your answer.
> One should NOT be so indignant.
>
> I have read the FAQ *twice* already since I have had to deal with R.
> First time about 4 years ago, second about 2 years ago.
>
> Do you mean, Dr.Ripley, one has to carefully read this
> 100-pages-FAQ-manual  one time per year or even more often?

I don't think anyone's suggesting that. However, before you post to 
r-devel, especially suggesting that you have found a BUG, you should 
have scanned the FAQ questions (not necessarily the answers) to see if 
one matches yours. Technical documentation is not a detective novel, 
meant to be read once in your lifetime, it's a reference that you 
should know how to look up when necessary.

> I guess this FAQ-entry about fully intuitive behaviour of xyplot came
> last year, right?
>
> BTW, just imagine that the problem is not me. Maybe if the FAQ is too
> long then one could reconsider decisions, which have led to this
> situation.

The answer to your question is also available in lattice documentation, 
which you also obviously have not read. What excuse do you have for 
that?

> Anyway I have no fun to follow this flame.

But surely we are entitled to flame you when you waste our time by 
relying on your 'intuition' rather than written documentation which we 
have spent a lot of effort producing?

(In any case, Prof Ripley's 'flaming' in this case was pretty mild, in 
fact practically non-existent,  compared to his usual standards :-))

Deepayan

>
> Thank you for your valuable contribution to R.
>
> With *kind* regards,
> Valery.

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] strptime() bugs?

2004-11-22 Thread Juan Santiago Ramseyer
Em Seg, 2004-11-22 Ãs 07:31 +, Prof Brian Ripley escreveu:
> The bug is in your (unstated) OS, probably in its locale handling.
> Does not happen on Solaris, Linux or Windows for me.
> 
> In any case, why not use as.Date?
> 
> On Mon, 22 Nov 2004, Juan Santiago Ramseyer wrote:
> 
> > strptime return wrong data?, look the R session.
> >
> >
> > # datetxt: vector of date in text format
> >> datetxt <- c("1939-Oct-06 00:00:00", "1939-Oct-07 00:00:00",
> >   "1939-Oct-08 00:00:00", "1939-Oct-09 00:00:00")
> >
> >> datehour <- strptime(datetxt,format= "%Y-%b-%d %H:%M:%S")
> >> datehour
> > [1] "1939-10-06 00:00:00" "1939-10-07 00:00:00" "1939-10-08 01:00:00"
> > [4] "1939-10-09 00:00:00"
> >
> > # look value of datehour[3] element, where hour output equal 01:00:00,
> > # but hour input equal 00:00:00.
> 
> Is there a DST issue in your unstated timezone?
> 
I run Fedora Core 3. In my computer, make

> julian(datehour)
Time differences of -11044.88, -11043.88, -11042.88, -11041.92 days

When de answer is not integer value 

Juan.

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] user error described in the FAQ (was [BUG?] xyplot in loop does not work)

2004-11-22 Thread Valery Khamenya
> Please DO as the posting guide asks and read the FAQ before posting.
> Do read Q7.22 (and its answer).

thank you for your answer.
One should NOT be so indignant.

I have read the FAQ *twice* already since I have had to deal with R.
First time about 4 years ago, second about 2 years ago.

Do you mean, Dr.Ripley, one has to carefully read this 
100-pages-FAQ-manual  one time per year or even more often?

I guess this FAQ-entry about fully intuitive behaviour of xyplot came 
last year, right?

BTW, just imagine that the problem is not me. Maybe if the FAQ is too
long then one could reconsider decisions, which have led to this situation.

Anyway I have no fun to follow this flame.

Thank you for your valuable contribution to R.

With *kind* regards,
Valery.

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] user error described in the FAQ (was [BUG?] xyplot in loop does not work)

2004-11-22 Thread Prof Brian Ripley
Please DO as the posting guide asks and read the FAQ before posting.
Do read Q7.22 (and its answer).
On Mon, 22 Nov 2004, Valery Khamenya wrote:
Hi,
the following code produces no graphic output:
Correct.  It should not.
#
library(lattice)
library(car)
data(Robey)
for (i in 1:1)
 xyplot(tfr~contraceptors, data=Robey)
#
However if line with "for" is out-commented then
one gets graph output.
Correct: it should.
--
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] [BUG?] xyplot in loop does not work

2004-11-22 Thread Uwe Ligges
Valery Khamenya wrote:
Hi,
the following code produces no graphic output:
#
library(lattice)
library(car)
data(Robey)
for (i in 1:1) 
  xyplot(tfr~contraceptors, data=Robey)
#
Yes, because you need to print()!
See the FAQs.
Uwe Ligges

However if line with "for" is out-commented then 
one gets graph output.

The following versions were tested:
-
platform i386-pc-mingw32
arch i386   
os   mingw32
system   i386, mingw32  
status  
major1  
minor9.1
year 2004   
month06 
day  21 
language R  

-
platform i386-pc-mingw32
arch i386   
os   mingw32
system   i386, mingw32  
status  
major2  
minor0.0
year 2004   
month10 
day  04 
language R   
-
(Version 2.0.1 were tested too)

best regards
--
Valery.
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] [BUG?] xyplot in loop does not work

2004-11-22 Thread Valery Khamenya
Hi,

the following code produces no graphic output:

#
library(lattice)
library(car)
data(Robey)

for (i in 1:1) 
  xyplot(tfr~contraceptors, data=Robey)
#

However if line with "for" is out-commented then 
one gets graph output.

The following versions were tested:

-
platform i386-pc-mingw32
arch i386   
os   mingw32
system   i386, mingw32  
status  
major1  
minor9.1
year 2004   
month06 
day  21 
language R  

-
platform i386-pc-mingw32
arch i386   
os   mingw32
system   i386, mingw32  
status  
major2  
minor0.0
year 2004   
month10 
day  04 
language R   
-
(Version 2.0.1 were tested too)

best regards
--
Valery.

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel