[R] strange date format after extracting calendar data with RSQLite

2014-09-03 Thread Nuno Prista
Hi, I have recently downloaded RSQLite with intention of using it to access googlecalendar data stored in Thunderbird cache.sqlite and local.sqlite. Thunderbird exports the data just fine as a .ics file but when I access it directly from R using RSQLite function dbGetQuery I get strange

[R] Running 32 bits code from within R 64 bits

2013-03-12 Thread Nuno Prista
Microsoft Access and Excel [for which RODBC seems to require R 32 bits] from within my 64 bits version. Thank you in advance, -- Nuno Prista Programa de Amostragem a Bordo (PNAB/DCF) Instituto Português do Mar e da Atmosfera, I.P. Telef: +351 21 302 70 00 (ext. 1385

[R] wrong argument to TO_CHAR (RODBC)?

2011-05-13 Thread Nuno Prista
Dear all, I can't seem to run what seems (to me!) like a common SQL statement in RODBC: data - sqlQuery(a, 'SELECT TO_CHAR (DB1.DATE, '') year FROM DB1') In contrast, data - sqlQuery(a, 'SELECT TO_CHAR(DB1.DT_INICIO) year FROM DB1') works but it does not come up as I want it to

[R] assign value to multiple objects with a given ls pattern

2011-02-21 Thread Nuno Prista
(pattern=a) a specific value, e.g., 99, without having to assign each object at a time. is there a way I can do this within a for cycle? I have tested several eval and parse statements but with no success. Regards, Nuno Prista PhD student Instituto de Oceanografia

[R] mouse-clicking on xy-plot

2010-04-02 Thread Nuno Prista
Hi, I seem to recall coming across a function that allowed one to mouse-click on an xy-plot and obtain x and y coordinates. Can anyone remind me its name? Thanks, Nuno __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] unstable MA results in ARIMA?

2008-10-24 Thread Nuno Prista
) miss-calculated gets larger and larger when I test q1. Can I trust the arima estimates in the MA case as I do in the AR case? Thanks, Nuno Prista _ CO - FCUL, Lisboa, Portugal CQFE - ODU, Norfolk, USA __ R-help@r-project.org

Re: [R] [R-SIG-Finance] forecasting earnings, sales and gross margin of a company...

2008-10-23 Thread Nuno Prista
Stoffer and Shumway have a nice hands-on book on time series with R. Their website is also very instructive. You may also wanna take a look at the tseries, FinTS and forecasting packages. Nuno Prista Michael wrote: Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R

[R] ARIMA - h-step ahead errors

2008-10-18 Thread Nuno Prista
Dear colleagues, “arima” returns directly the 1-step ahead errors but I am interested in obtaining other h-step ahead errors for several ARIMA models I have fitted. Is there any way I can obtain this with R? Any help would be appreciated. Sincerely, Nuno Prista

Re: [R] ARIMA - h-step ahead errors

2008-10-18 Thread Nuno Prista
I have looked at the predict.Arima and its a fact that it returns the s.e. for several steps ahead. What I was wondering was if there was a way to access to the h-step ahead fitted innovations that underlie them. Nuno Prof Brian Ripley wrote: On Sat, 18 Oct 2008, Nuno Prista wrote: Dear

Re: [R] how to write symbol (nabla) in R graph

2008-06-20 Thread Nuno Prista
a nabla anywhere on it? thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dieter Menne Sent: Friday, June 20, 2008 3:03 AM To: [EMAIL PROTECTED] Subject: Re: [R] how to write symbol (nabla) in R graph Nuno Prista nmprista at fc.ul.pt writes: Can

[R] how to write symbol (nabla) in R graph

2008-06-19 Thread Nuno Prista
Dear colleagues, Can anyone of you tell me how to write a nabla symbol in an R graph? Thanks in advance, Nuno __ Centro de Oceanografia - IO-FCUL, Portugal Center for Quantitative Fisheries Ecology - ODU, USA

[R] Box.test degrees of freedom

2008-05-16 Thread Nuno Prista
Dear colleagues, I am new to R and statistics so please keep that in mind. I have doubts on the df calculation of Ljung-Box test (Box.test). The function seems to use always the df=lag=m and not df=m-p-q like suggested in Ljung and Box (1978) paper (that is referenced). Do you agree

[R] help! - spectral analysis - spec.pgram

2008-03-27 Thread Nuno Prista
Can someone explain me this spec.pgram effect? Code: period.6-c(0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10 ,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10) period.5-c(0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,0,0,10

[R] Nonlinear autoregression and spectral analysis (mixed spectra)

2008-02-22 Thread Nuno Prista
Hi, I am studying frequency the seasonal cycle of a time-series that I believe includes also an AR (1) component. I would be interested in estimating frequency, amplitude and phase of the main seasonal cycle of the parameter of the AR component. I have preliminary estimates of the seasonal

[R] Maximum entropy spectral analysis

2008-01-24 Thread Nuno Prista
Hi, Is there on R a package containing Maximum entropy spectral analysis function? Thanks in advance, Nuno Prista __ Instituto de Oceanografia - FCUL, Portugal Center for Quantitative Fisheries Ecology - ODU, USA

[R] Help! - boxcox transformations

2007-12-13 Thread Nuno Prista
Hi, Hope this does not sound too ignorant . I am trying to detrend and transform variables to achieve normality and stationarity (for time series use, namely spectral analysis). I am using the boxcox transformations. As my dataset contains zeros, I found I need to add a constant to it

[R] function centralm - does it exist

2007-12-10 Thread Nuno Prista
package? Thanks, Nuno Prista [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

[R] Cannot insert label on top axis

2007-12-07 Thread Nuno Prista
Hi, I am not being able to find code to insert a label on the top graphic, can anyone help? Thanks in advance, Nuno Prista X-1:10 plot(x, xlab=I can insert this label here but not on top axis) axis(3) [[alternative HTML version deleted

[R] spec.pgram() - circularity of kernel

2007-11-25 Thread Nuno Prista
, taper=0)$freq x==y Thanks in advance, Nuno Prista __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self

[R] spec.pgram() - circularity of kernel

2007-11-25 Thread Nuno Prista
, taper=0)$freq x==y Thanks in advance, Nuno Prista __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self

[R] monthplot () - axis change color

2007-11-16 Thread Nuno Prista
(AirPassengers, col=blue, ylim=c(min(AirPassengers), max(AirPassengers+500)), ylab=) Greetings from Norfolk, Nuno Prista __ Instituto de Oceanografia - FCUL, Portugal Center for Quantitative Fisheries Ecology - ODU, USA [[alternative

[R] decompose () vs. stl ()

2007-11-12 Thread Nuno Prista
Hi, I have been having trouble finding references that compare the classical decomposition methods [decompose()] with the STL method of Cleveland et al. (1990) [stl()]. Can anybody indicate some references that make comparisons between the two methods and the advantage/disadvantages of each one

[R] decompose () vs stl () - reference search

2007-11-09 Thread Nuno Prista
for something more than this :). Can anybody supply me with some references that may make comparisons between the two methods and/or discuss the advantage/disadvantages of each one in different situations? Thanks in advance, Nuno Prista __ Instituto de