Skip to contents

Insert medal emojis

Usage

medal(place)

Arguments

place

Character denoting the place of the medal. See details for allowed names.

Details

This function is vectorized. There are a 1st, 2nd and 3rd place medals and allowed names are listed below. Note that matches are made without case.

  • 1st place medal"1", "1st", or "gold"

  • 2nd place medal"2", "2nd", or "silver"

  • 3rd place medal"3", "3rd", or "bronze"

#@return Character vector of emojis.

Examples

medal(1:3)
#> [1] "🥇" "🥈" "🥉"

medal("gold")
#> [1] "🥇"
medal("Gold")
#> [1] "🥇"