?ts
tells you exactly how to do this.
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Sat, Apr 1, 2017 at 1:37 PM, Lorenzo Isella wrote:
> Dear All,
Dear All,
I am sure the solution is a one liner, but I am a bit struggling.
Given a time series which starts at a given time t_ini, I would like to set
a initial start time farther away in the past and have NA before t_ini
(I need this to align different time series).
For instance
d<-ts(seq(20),
ply(a1$x,length)),x=unlist(a1$x))
row.names(df2)<-1:nrow(df2)
A.K.
- Original Message -
From: "Bond, Stephen"
To: "'MacQueen, Don'" ; "r-help@r-project.org"
Cc:
Sent: Wednesday, September 11, 2013 11:36 AM
Subject: Re: [R] windowing
Very int
hould be able to use
reshape(a1,dir="long",varying=2:11,idvar="x1",v.names="x")
to get it back in long form.
Thank everybody.
Stephen B
-Original Message-
From: MacQueen, Don [mailto:macque...@llnl.gov]
Sent: Wednesday, September 11, 2013 10:42 AM
To: Bond,
>From the help page for the aggregate function:
Compute Summary Statistics of Data Subsets
Description:
Splits the data into subsets, computes summary statistics for
each, and returns the result in a convenient form.
You might have to use cumsum() after the aggregation, if
"unboun
Is there a package or a command that does window aggregation like
select
sum(col1) over
(partition by col2, col3 order by col4
rows between unbounded preceding and current row) as sum1
from table1 ;
the above is Netezza syntax, but Postgre has same capability.
Stephen B
[[alternative HT
Robert,
It is a windows thing:
Try:
par(mfrow=c(2,2))
for(i in 1:4)plot(i)
par(mfrow=c(1,1))
and then scroll/resize.
Karline
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://ww
I had strange windowing behavior with R 9.1 on Windows XP when executing code
from the diagram package. Perhaps it is even normal behavior that I don't
understand as it was an unintentional discovery. I don't even know if it is a
package issue or a windowing issue.
Reproducing it. Execute th
8 matches
Mail list logo