Convert three-letter station codes to full station names for labelling plots and tables. Useful for creating publication-ready figures with descriptive location names.
Details
Station Code Mapping
The function converts the following codes to full names:
DAR→ "Darwin" (Northern Territory)YON→ "Yongala" (Queensland, Great Barrier Reef)NSI→ "North Stradbroke Island" (Queensland, near Brisbane)PHB→ "Port Hacking" (New South Wales, Sydney)MAI→ "Maria Island" (Tasmania, east coast)KAI→ "Kangaroo Island" (South Australia)ESP→ "Esperance" (Western Australia, south coast)ROT→ "Rottnest Island" (Western Australia, Perth)NIN→ "Ningaloo" (Western Australia, north coast)VBM→ "Bonney Coast" (South Australia/Victoria border)
See also
pr_add_StationCode()for the reverse conversionpr_get_info()for station metadata
Examples
# Add station names to data with StationCode
df <- data.frame(StationCode = c("PHB", "MAI", "NSI")) %>%
pr_add_StationName()