Convert three-letter station codes to full station names for labelling plots and tables. Useful for creating publication-ready figures with descriptive location names.
pr_add_StationName(df)A dataframe with a new StationName column containing full station names
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)
pr_add_StationCode() for the reverse conversion
pr_get_info() for station metadata
# Add station names to data with StationCode
df <- data.frame(StationCode = c("PHB", "MAI", "NSI")) %>%
pr_add_StationName()