Update: I've been working on this, and have a clunky for loop solution, as well as quite a few that surprisingly don't work.
We've established this one:
library(lurbidate)
time = rep(as.character(Sys.time()), 3)
timezones = c('GMT', 'US/Pacific', 'US/Pacific')
# Doesn't work:
ymd_hms(time, tz = timezones)
This doesn't do the timezone right:
# Doesn't work either:
b = mapply(ymd_hms, a$time, a$timezones)
Neither does mutate:
a = data.frame(time, timezones, stringsAsFactors = FALSE)
# doesn't work.
mutate(a, ymd_hms(time, tz = timezones))
This clunky for loop does, though:
a = data.frame(time, timezones, stringsAsFactors = FALSE)
a$time_cast = ymd_hms(a$time)
# This works!
for (count in 1:nrow(a)){
tz(a$time_cast[count]) = a$timezones[count]
}
a
a$time_cast
For now I'm going to continue my work with this, but appreciate any and all ways to NOT be doing this 