Displaying 16 results from an estimated 16 matches for "dstday".
Did you mean:
dstdays
2008 Sep 03
1
ggplot2: line plot with gaps in time axis
...62 Inbound
[...]
# startDateTime and stopDateTime is user entered
Start <- as.numeric(as.POSIXct(startDateTime))
End <- as.numeric(as.POSIXct(stopDateTime))
Period<-as.numeric(seq.POSIXt(as.POSIXct(Start,origin="1970-1-1"),
as.POSIXct(End,origin="1970-1-1"), by="DSTday"))
Labels<-as.Date(seq.POSIXt(as.POSIXct(Start,origin="1970-1-1"),
as.POSIXct(End,origin="1970-1-1"), by="DSTday"))
dt <-
qplot(as.numeric(utildf$Date_and_Time),Utilization,data=utildf,colour=Direction,geom="segment")
dt + scale_x_continuous(breaks...
2004 Mar 30
1
seq.POSIXt() bug not fixed in R 1.8.1 (PR#4558)
I am still experiencing problems with seq.POSIXt() missing off the last day
of the series:
> seq(as.POSIXct("2004-03-25"),as.POSIXct("2004-03-31"),by="DSTdays")
[1] "2004-03-25 GMT Standard Time" "2004-03-26 GMT Standard Time"
"2004-03-27 GMT Standard Time"
[4] "2004-03-28 GMT Standard Time" "2004-03-29 GMT Daylight Time"
"2004-03-30 GMT Daylight Time"
> R.version
_...
2005 Aug 02
1
cut.Date functionality for chron date/time objects
...s: a vector of cut points _or_ number giving the number of
| intervals which 'x' is to be cut into _or_ an interval
| specification, one of '"sec"', '"min"', '"hour"', '"day"',
| '"DSTday"', '"week"', '"month"' or '"year"', optionally
| preceded by an integer and a space, or followed by '"s"'.
| For '"Date"' objects only '"day"', '"week&q...
2007 Oct 25
1
Strange behavior with time-series x-axis
I recently called plot(x,y) where x was an array of POSIXct timestamps,
and was pleasantly surprised that it produced a nice plot right out of
the box:
z <- as.POSIXct(c("2006-10-26 08:00:00 EDT","2007-10-25 12:00:00 EDT"))
x <- seq(z[1],z[2],len=100)
y <- 1:100
plot(x,y,type="l")
The X axis had nice labels, one tick mark every other month. (Plotting
on
2007 Mar 19
3
R4.1: seq.POSIXt, tz="AEST" (PR#9572)
...code".
> x <- as.POSIXct("1968-02-27") # tz="AEST"
> x.gmt <- as.POSIXct("1968-02-27", tz="GMT")
> data.frame(
GMT=seq(x.gmt, by="day", length=8),
byday=seq(x, by="day", length=8),
byDST=seq(x, by="DSTday", length=8))
GMT byday byDST
1 1968-02-27 1968-02-27 1968-02-27
2 1968-02-28 1968-02-28 1968-02-28
3 1968-02-29 1968-03-01 1968-03-02
4 1968-03-01 1968-03-02 1968-03-02
5 1968-03-02 1968-03-02 1968-03-02
6 1968-03-03 1968-03-03 1968-03-03
7 1968-03-04 1968-03-04 1968-03-04
8...
2002 May 31
2
error in seq.POSIXt?
I am trying to extract only the winters (defined to be 01-Dec through
28-Feb) of daily data from 1948-2002. There are 90 days in each winter
season. I wrote the following code to gather the winter dates into a
single vector:
DJF <- NULL
for(year in 1949:1999) {
temp.begin <- strptime(paste("01/12", year-1, sep="/"), "%d/%m/%Y")
temp.end <-
2009 Dec 21
1
proposal for new axis.Date/axis.POSIXct
...http://pastie.org/751640.txt")
steps <-
list("10 secs",
"1 min", "5 mins", "10 mins", "15 mins", "30 mins",
"1 hour", "3 hours", "6 hours", "12 hours",
"1 DSTday", "1 week", "2 weeks",
"1 month", "3 months", "6 months",
"1 year", "2 years", "5 years", "10 years",
"20 years", "50 years", "100 years")
names(st...
2011 Sep 24
2
maptools::sunriset() daylight savings to stardard time change
Hello all,
After beating my head against the wall for a few hours, I give up.
I have two problems.
1. If I use seq() to generate a POSIXct series that crosses a daylight savings to stardard time change I get two values for the first day of change. The time change is Nov 6,2011. The value for Nov 7 turns into 23:00 on Nov 6, thus two values for Nov 6. (see below)
So I put a time value (noon)
2010 May 19
1
pretty.Date(): new "halfmonth" time step
Hi R-devel / R-core
In the new pretty() methods for Date and POSIXct
https://svn.r-project.org/R/trunk/src/library/grDevices/R/prettyDate.R
there is currently a "pretty" time step listed as "15 DSTdays"... but
this actually doesn't line up well with months.
Much better to implement directly what this is trying to do: i.e. to
have a "halfmonth" time step. This is just the union of two "monthly"
sequences, one on the 1st of each month and another on the 15th of
each m...
2003 Nov 25
0
AW: ISOdate() and strptime()
...scratch my head just
yesterday:
When I create a sequence of days that happens to start before and ends in
daylight savings time, I seem to lose a day:
> seq(from = strptime("20030329", format="%Y%m%d"), to= strptime("20030402",
format="%Y%m%d"), by="DSTday")
[1] "2003-03-29 Westeurop?ische Normalzeit" "2003-03-30 Westeurop?ische
Normalzeit"
[3] "2003-03-31 Westeurop?ische Sommerzeit" "2003-04-01 Westeurop?ische
Sommerzeit"
> seq(from = strptime("20030329", format="%Y%m%d"), to= strpt...
2004 Apr 12
1
R 1.9.0 is release
...ration of S3 methods in
namespaces were broken if the S3 generic was converted into an
S4 generic by setting an S4 method.
o Title and copyright holder of the reference manual are now in
sync with the citation() command.
o The validation code for POSIXlt dates and hence
seq(, by="DSTdays") now works for large mday values (not
just those in -1000...1000). (PR#6212)
o The print() method for data frames now copes with data frames
containing arrays (other than matrices).
o texi2dvi() and buildVignettes() use clean=FALSE as default
because the option is not supported...
2004 Apr 12
1
R 1.9.0 is release
...ration of S3 methods in
namespaces were broken if the S3 generic was converted into an
S4 generic by setting an S4 method.
o Title and copyright holder of the reference manual are now in
sync with the citation() command.
o The validation code for POSIXlt dates and hence
seq(, by="DSTdays") now works for large mday values (not
just those in -1000...1000). (PR#6212)
o The print() method for data frames now copes with data frames
containing arrays (other than matrices).
o texi2dvi() and buildVignettes() use clean=FALSE as default
because the option is not supported...
2018 Apr 23
0
R 3.5.0 is released
...ows methods when there are
multiple methods with the same signature for the same generic
(still not fully supported, but at least the user can see them).
* sys.on.exit() is now always evaluated in the right frame. (From
Lionel Henry.)
* seq.POSIXt(*, by = "<n> DSTdays") now should work correctly in
all cases and is faster. (PR#17342)
* .C() when returning a logical vector now always maps values other
than FALSE and NA to TRUE (as documented).
* Subassignment with zero length vectors now coerces as documented
(PR#17344).
F...
2018 Apr 23
0
R 3.5.0 is released
...ows methods when there are
multiple methods with the same signature for the same generic
(still not fully supported, but at least the user can see them).
* sys.on.exit() is now always evaluated in the right frame. (From
Lionel Henry.)
* seq.POSIXt(*, by = "<n> DSTdays") now should work correctly in
all cases and is faster. (PR#17342)
* .C() when returning a logical vector now always maps values other
than FALSE and NA to TRUE (as documented).
* Subassignment with zero length vectors now coerces as documented
(PR#17344).
F...
2003 Oct 08
1
R-1.8.0 is released
...reorder()ed dendrograms now plot properly.
o rmultinom(1,100, c(3, 4, 2, 0,0))[3] was NA. (PR#4431)
o sapply() for matrix result does not return list(NULL,NULL) dimnames
anymore.
o scan() now interprets quoting in fields to be skipped. (PR#4128)
o seq.POSIXt(from, to, by="DSTday") was failing or calculating
the length incorrectly.
o sort() and unique.default() were failing on 0-level factors.
o step() adds a fuzz for reduction in AIC for 0-df terms. (PR#3491)
o str(x) gives better output when x is of mode "(". Its "dendrogram"
me...
2003 Oct 08
1
R-1.8.0 is released
...reorder()ed dendrograms now plot properly.
o rmultinom(1,100, c(3, 4, 2, 0,0))[3] was NA. (PR#4431)
o sapply() for matrix result does not return list(NULL,NULL) dimnames
anymore.
o scan() now interprets quoting in fields to be skipped. (PR#4128)
o seq.POSIXt(from, to, by="DSTday") was failing or calculating
the length incorrectly.
o sort() and unique.default() were failing on 0-level factors.
o step() adds a fuzz for reduction in AIC for 0-df terms. (PR#3491)
o str(x) gives better output when x is of mode "(". Its "dendrogram"
me...