R - UTC to LOCAL time given Olson timezones
问题 I have time series data from 1974-2013 with a column for datetimeUTC (YYYY-MM-DD hh:mm +0000), and a column for the timezones in Olson format (e.g., Canada/Pacific, Canada/Eastern). I can convert the whole UTCdatetime column to a common timezone like this: dataset$datetimeEST <- strptime( dataset$datetimeUTC, format="%Y-%m-%d %H:%M:%S%z", tz="Canada/Eastern" ) How do I convert datetimeUTC to datetimeLOCAL , given the corresponding timezone in each row? Let me back up a bit. I have data from