I transferred a file to R and the time values are now displayed incorrectly. What is going on?

R dates are stored in POSIX format, which includes information on the time zone. None of the other software systems supported by Stat/Transfer include time zone information. Because of this, we have no way of knowing the correct time zone for your file. Therefore, we indicate to R that the dates are in GMT. Unfortunately R defaults to displaying dates using the local time zone. You can work around this with the following R command:

Sys.setenv(TZ='GMT')

This will cause R will display the dates exactly as they were displayed in your original file.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.