Re: [R] add only the 1st of May with POSIXct

2024-05-28 Thread Enrico Schumann
On Tue, 28 May 2024, Stefano Sofia writes: > Dear R-list users, > > From an initial and a final date I create a sequence of days using POSIXct. > > If this interval covers all or only in part the months from May to October, I > need to get rid of the days from the 2nd of May to the 31st of Octobe

Re: [R] add only the 1st of May with POSIXct

2024-05-28 Thread Stefano Sofia
Thank you Rui for your code. I basically understood all your suggestions. I am using an old version of R (version 3.6.3, installed in a server I am not allowed to control), and the new pipe operator does not work. I tried to run your code without the "|>" operator, but I get an error when I us

Re: [R] add only the 1st of May with POSIXct

2024-05-28 Thread Rui Barradas
Às 16:23 de 28/05/2024, Stefano Sofia escreveu: Dear R-list users, From an initial and a final date I create a sequence of days using POSIXct. If this interval covers all or only in part the months from May to October, I need to get rid of the days from the 2nd of May to the 31st of October:

[R] add only the 1st of May with POSIXct

2024-05-28 Thread Stefano Sofia
Dear R-list users, >From an initial and a final date I create a sequence of days using POSIXct. If this interval covers all or only in part the months from May to October, I need to get rid of the days from the 2nd of May to the 31st of October: a <- as.POSIXct("2002-11-01", format = "%Y-%m-%d

Re: [R] Can someone please have a look at my query on stackoverflow ?

2024-05-28 Thread Ashim Kapoor
Dear Uwe and others, Here is my query: I am looking for a function which can:- take a seasonal ARMA model and return :- the spectrum of the seasonal ARMA model. I have seen: library(astsa) ?arma.spec However it's a bit clumsy to use arma.spec when my model has seasonal ar / ma terms. For e