Re: [R] Help converting file to XTS

2019-02-06 Thread Jeff Newmiller
NA NA NA NA NA >[233] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA >NA NA NA NA NA NA N > > >It seems like the indexing is somehow wrong, or am I missing something? >:) > >________________ >Fra: Jeff Newmiller >Sendt: tirsdag 5

Re: [R] Help converting file to XTS

2019-02-05 Thread Jeff Newmiller
One thing about POSIXct or POSIXlt... you always need to address the issue of timezone. If your timestamp data are simple (no daylight savings) you may be able to get away with a simple Sys.setenv( TZ="GMT" ) sometime in each R session prior to converting anything to this type (e.g at the begi

Re: [R] Help converting file to XTS

2019-02-05 Thread David Winsemius
On 2/5/19 6:06 AM, Johannes Møllerhagen wrote: Hello there! I am a master student working on my master thesis, and I am trying to convert some data to xts so I can apply a highfrequency package to it. At the moment I am trying to use a POSIXct function. I am quite new at this program and I a

Re: [R] Help converting file to XTS

2019-02-05 Thread Bert Gunter
Hard to say without knowing what dat looks like. Can you show us a small sample, perhaps via dput( head( dat)) ? See ?dput, ?head for details. A guess would be that dat is a data frame and not a character string, but Bert Gunter "The trouble with having an open mind is that people keep c