# NOT RUN {
# Match hospital with a single keyword
normalise('Matosinhos')
# The same, but return now the full name
normalise('Matosinhos', 'hospital_full_name')
# Get instead the hospital identifier
normalise('Matosinhos', 'hospital_id')
# Or even just the acronym (useful for labelling in plots)
normalise('Matosinhos', 'hospital_acronym')
# Find hospitals from their old names
# "Hospital do Alto Ave" is the old name for 'Hospital da Senhora da Oliveira, Guimar<U+00E3>es, EPE'
normalise('Hospital do Alto Ave', 'hospital_full_name')
# `normalise()` is vectorised over `nm`
normalise(nm = c('medio tejo', 'oeste', 'guarda'))
# }
Run the code above in your browser using DataLab