Re: [R] Reg: Frequency in declaring time series data

2023-01-16 Thread Rui Barradas
Às 20:52 de 16/01/2023, Upananda Pani escreveu: Hi Rui, Thank you so much for your help. As I have to fit a Markov Switching Model using MSwM package. May I know whether i can convert from zoo object to a time series object. As I have to use several packages which uses ts so I am not able to

[R] (no subject)

2023-01-16 Thread Upananda Pani
Dear Members, Greetings! I would like to know how to create the lag variable for my data. # Load data and create time series object oil <- read_xlsx("crudefinal.xlsx") pricet=ts(oil$price, start = c(2020, 22), frequency = 365) roilt=ts(diff(log(oil$price))*100,start=c(2020,22),freq=

Re: [R] Reg: Frequency in declaring time series data

2023-01-16 Thread Rui Barradas
Às 16:39 de 16/01/2023, Upananda Pani escreveu: Dear All, I have a time series daily data with date are stored ( %dd-%mm-%yy format ) from 22-01-20 to 03-08-21. In total I have 560 observations. I am using the following command to declare as a time series object. Here the the data set is 7 days

[R] Reg: Frequency in declaring time series data

2023-01-16 Thread Upananda Pani
Dear All, I have a time series daily data with date are stored ( %dd-%mm-%yy format ) from 22-01-20 to 03-08-21. In total I have 560 observations. I am using the following command to declare as a time series object. Here the the data set is 7 days a week. oil <- read_xlsx("crudefinal.xlsx") pricet

Re: [R] Printing special characters

2023-01-16 Thread Rui Barradas
Às 10:15 de 16/01/2023, Martin Maechler escreveu: Rui Barradas on Mon, 16 Jan 2023 08:46:43 + writes: > Às 08:31 de 16/01/2023, Jeff Newmiller escreveu: >> Use the Cairo PDF device? >> >> On January 16, 2023 12:18:48 AM PST, Dennis Fisher >> wrote: >>> R

Re: [R] Printing special characters

2023-01-16 Thread Martin Maechler
> Rui Barradas > on Mon, 16 Jan 2023 08:46:43 + writes: > Às 08:31 de 16/01/2023, Jeff Newmiller escreveu: >> Use the Cairo PDF device? >> >> On January 16, 2023 12:18:48 AM PST, Dennis Fisher >> wrote: >>> R 4.2.2 OS X >>> >>> Colleagues >>>

Re: [R] Printing special characters

2023-01-16 Thread PIKAL Petr
Hallo Dennis Is the STRING in R still containing **≥** character? Or it was converted during reading to R to ...? What dput(STRING) result i? Cheers Petr > -Original Message- > From: R-help On Behalf Of Dennis Fisher > Sent: Monday, January 16, 2023 9:19 AM > To: r-help@r-project.org

Re: [R] Printing special characters

2023-01-16 Thread Rui Barradas
Às 08:31 de 16/01/2023, Jeff Newmiller escreveu: Use the Cairo PDF device? On January 16, 2023 12:18:48 AM PST, Dennis Fisher wrote: R 4.2.2 OS X Colleagues A file that I have read includes strings like this: "EVENT ≥ 30 sec" When I include the string in a graphic using: mtex

Re: [R] Printing special characters

2023-01-16 Thread Eric Berger
How about just 'EVENT > 30 sec' or 'EVENT > 29 sec' ? On Mon, Jan 16, 2023 at 10:19 AM Dennis Fisher wrote: > R 4.2.2 > OS X > > Colleagues > > A file that I have read includes strings like this: > "EVENT ≥ 30 sec" > When I include the string in a graphic using: > mtext(STRING,

Re: [R] Printing special characters

2023-01-16 Thread Jeff Newmiller
Use the Cairo PDF device? On January 16, 2023 12:18:48 AM PST, Dennis Fisher wrote: >R 4.2.2 >OS X > >Colleagues > >A file that I have read includes strings like this: > "EVENT ≥ 30 sec" >When I include the string in a graphic using: > mtext(STRING, …) >it appears as: > "EVENT .

[R] Printing special characters

2023-01-16 Thread Dennis Fisher
R 4.2.2 OS X Colleagues A file that I have read includes strings like this: "EVENT ≥ 30 sec" When I include the string in a graphic using: mtext(STRING, …) it appears as: "EVENT ... 30 sec" Is there a simple work-around (short of reformatting all the strings, then using