sDaply2(X, X$ID)
# list is not a timeSeries object
str(cbind(t(res)))
res <- as.timeSeries(cbind(t(res)))
-Original Message-
From: h.wick...@gmail.com [mailto:h.wick...@gmail.com] On Behalf Of Hadley
Wickham
Sent: 14 March 2011 15:07
To: Daniele Amberti
Cc: r-help@r-project.org
Subjec
Thanks Hadley for Your interest, below some code without environments use
(using timeSeries); I also made some experiments with .parallel = TRUE in daply
to crate timeSeries objects and then bind them together but I have some
problems.
Thank You in advance,
Daniele Amberti
set.seed(123)
N
,
Daniele Amberti
set.seed(123)
N <- 1
X <- data.frame(
ID = c(rep(1,N), rep(2,N,), rep(3,N), rep(4,N)),
DATE = as.character(rep(as.POSIXct("2000-01-01", tz = "GMT")+ 0:(N-1), 4)),
VALUE = runif(N*4), stringsAsFactors = FALSE)
X <- X[sample(1:(N*4), N*4)
return(get("xx", e1))
}
Time02 <- replicate(100,
system.time(fooBy(X,
X$ID, buildTimeSeriesFromDataFrame,
simplify = TRUE))[[1]])
median(Time02)
hist(Time02)
plot(density(Time02), xlim = c(min(c(Tim
I'm wondering how to save an object (models like lm, loess, etc) in a DB to
retrieve and use it afterwards, an example:
wind_ms <- abs(rnorm(24*30)*4+8)
air_kgm3 <- rnorm(24*30, 0.1)*0.1 + 1.1
wind_dg <- rnorm(24*30) * 360/7
ms <- c(0:25)
kw_mm92 <- c(0,0,0,20,94,205,391,645,979,1375,1795,2000,20
Message-
From: Moshe Olshansky [mailto:m_olshan...@yahoo.com]
Sent: 24 February 2010 11:09
To: r-help@r-project.org; Daniele Amberti
Subject: Re: [R] Optimise huge data.frame construction - [ ] Message is from an
unknown sender
Hi Daniele,
One possibility would be to make two runs. In the first
I have data for different items (ID) in a database.
For each ID I have to get:
- Timestamp of the observation (timestamp);
- numerical value (val) that will be my response variable in some kind
of model;
- a variable number of variables in a know set (if value for a
Zahn [mailto:istaz...@gmail.com]
Sent: 01 October 2009 17:11
To: Daniele Amberti
Cc: r-help@r-project.org; Rainer M Krug
Subject: Re: [R] Compress (gzip) a pdf device - [ ] Message is from an unknown
sender
I guess I don't understand what your're trying to do. gzip-ing a file
from within R is ea
(without using an
external executable).
Daniele
From: Rainer M Krug [mailto:r.m.k...@gmail.com]
Sent: 30 September 2009 10:26
To: Daniele Amberti
Cc: r-help@r-project.org
Subject: Re: [R] Compress (gzip) a pdf device - [ ] Message is from an unknown
sender
2009/9/30 Daniele Amberti
mailto:dan
I have not found an easy way to compress a file on filesystem.
Especially I'd like to compress a pdf from pdf() function/device. Is it
possible to compress It on the flight?
I'd like to do something like:
pdf(gzipconnection())
dev.off()
If It is not possible, how can I create a gzip with the pdf?
I have a piece of code as the one at the bottom, unfortunately since it
involves time series from a db it's not easy to give to mailing list a working
script.
It becomes very slow after few hundred iterations over variable sp (must
process several thousands).
The Rprof() indicates that the probl
*
*
*
I have to setup a simple classification method (mix of factor and
numeric variables) that can iteratively:
- Use expert opinion prior on item X1
- Classify X1 based on estimated model (training set) and
expert opinion (previous requirement)
-
Does anyone knows about the possibility to use Microsoft .net runtime (or mono)
from R (like RJava for Java)?
Thanks in advance
Daniele
ORS Srl
Via Agostino Morando 1/3 12060 Roddi (Cn) - Italy
Tel. +39 0173 620211
Fax. +39 0173 620299 / +39 0173 433111
Web Site
ict method.
Library forecasting seems to do something this way but documentation is not so
exhaustive.
Thanks
-Original Message-
From: Prof Brian Ripley [mailto:[EMAIL PROTECTED]
Sent: giovedì 8 maggio 2008 14.48
To: Daniele Amberti
Cc: r-help@r-project.org
Subject: Re: [R] ARIMA
Here is my problem:
Autoregressive models are very interesting in forecasting consumptions (eg
water, gas etc).
Generally time series of this type have a long history with relatively simple
patterns and can be useful to add external regressors for calendar events
(holydays, vacations etc).
ari
Hi,
I have to connect to MSSQL server to get some TimeSeries value (datetime,
float) on output.
Datetime data type in R is a POSIXct date with information about timezone,
daylight or solar time.
In the DB I have not this kind of information and this cause some problem at
the change of time for e
16 matches
Mail list logo