[R] ts.intersect bug?

2005-09-21 Thread Antonio, Fabio Di Narzo
This code gives an error:

 a - ts(1:10, start=0, freq=10)
 b - ts(1:10, start=1, freq=10)
 ts.intersect(a,b)

This one works normally (and correctly):
 a - ts(1:10, start=0)
 b - ts(1:10, start=1)
 ts.intersect(a,b)

Antonio, Fabio Di Narzo.

P.S. How to switch off italian error messages to post on r-help?

 version
 _
platform i386-pc-mingw32
arch i386
os   mingw32
system   i386, mingw32
status
major2
minor1.0
year 2005
month04
day  18
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


Re: [R] ts.intersect bug?

2005-09-21 Thread Martin Maechler
 AntonioFDN == Antonio, Fabio Di Narzo [EMAIL PROTECTED]
 on Wed, 21 Sep 2005 13:59:26 +0200 writes:

AntonioFDN This code gives an error:

AntonioFDN a - ts(1:10, start=0, freq=10)
AntonioFDN b - ts(1:10, start=1, freq=10)
AntonioFDN ts.intersect(a,b)

No, it gives a *warning* and returns NULL.

Why should it not?  a and b  have are not overlapping,
ie. *have* intersection NULL :

  plot(c(0,2), c(0,10), type =n) ; lines(a); lines(b,col=2)


I think you misunderstand what 'freq' means in the current
context.

AntonioFDN This one works normally (and correctly):
AntonioFDN a - ts(1:10, start=0)
AntonioFDN b - ts(1:10, start=1)
AntonioFDN ts.intersect(a,b)

AntonioFDN Antonio, Fabio Di Narzo.

AntonioFDN P.S. How to switch off italian error messages to post on r-help?

 version
AntonioFDN _
AntonioFDN platform i386-pc-mingw32
AntonioFDN arch i386
AntonioFDN os   mingw32
AntonioFDN system   i386, mingw32
AntonioFDN status
AntonioFDN major2
AntonioFDN minor1.0
AntonioFDN year 2005
AntonioFDN month04
AntonioFDN day  18
AntonioFDN language R

AntonioFDN __
AntonioFDN R-help@stat.math.ethz.ch mailing list
AntonioFDN https://stat.ethz.ch/mailman/listinfo/r-help
AntonioFDN PLEASE do read the posting guide! 
http://www.R-project.org/posting-guide.html

__
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