List of Time Zones in R

x <- file.path(R.home("share"), "zoneinfo", "zone.tab") %>% 
  read.delim(row.names = NULL, header = FALSE,
             col.names = c("country", "coords", "name", "comments"),
             as.is = TRUE, fill = TRUE, comment.char = "#")

y <- as.character(OlsonNames())

I am wondering why there is a difference between length of time zones (596) and number of rows of dataset (418 )?

See help(timezones). OlsonNames() (BTW: already returns a character vector) works according to its selected time database, and its default is system-specific.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.