search for: amberti

Displaying 9 results from an estimated 9 matches for "amberti".

Did you mean: alberti
2009 Sep 30
2
Compress (gzip) a pdf device
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? Thanks Daniele A. ________________________________ ORS Srl Via Agostino Morando 1/3
2010 Feb 24
1
Optimise huge data.frame construction
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 specific variable is not present in DB it is 0). To get to the above mentioned values I have to cycle
2011 Mar 11
1
dataframe to a timeseries object
..."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(Time02, Time01)), max(c(Time02, Time01)))) lines(density(Time01)) Best regards, Daniele Amberti ORS Srl Via Agostino Morando 1/3 12060 Roddi (Cn) - Italy Tel. +39 0173 620211 Fax. +39 0173 620299 / +39 0173 433111 Web Site www.ors.it ------------------------------------------------------------------------------------------------------------------------ Qualsiasi utilizzo non autorizzato...
2010 Apr 02
2
How to save a model in DB and retrieve It
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,2040) kw_mm92 <- c(kw_mm92, rep(2050, length(ms)-length(kw_mm92))) modelspline
2007 Jul 26
2
multiple graphs
Does anyone have a simple explanation and example on how to add histograms or barcharts to an other graph like in the example at the R-graph gallery: http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=109 looking at the code I'not undertand very well how to add graphs in arbitrary/clever position with an adequate scale. If somebody have a simplier example with explanations it
2008 May 08
1
ARIMA, AR, STEP
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). arima() is a very powerful function but kalman filter is very slow (and I foun difficulties of estimation)
2007 Feb 09
2
get.hist.quote problem yahoo
I have functions using get.hist.quote() from library tseries. It seems that something changed (yahoo) and function get broken. try with a simple get.hist.quote('IBM') and let me kow if for someone it is still working. I get this error: Error in if (!quiet && dat[n] != start) cat(format(dat[n], "time series starts %Y-%m-%d\n")) : missing value where
2008 Jan 31
0
Date time, MSSQL and RODBC
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 energy savings. Any idea on how to connect and have an simple and clear interpretation of date (without
2009 Aug 04
0
Efficient coding
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 problem is the use of gc(). Can someone indicate what I have to take care of not to call gc() so often?