get_song_rating: Get the rating from a song's filename for a specific reviewer...

View source: R/get_song_rating.R

get_song_ratingR Documentation

Get the rating from a song's filename for a specific reviewer and formation

Description

Get the rating from a song's filename for a specific reviewer and formation

Usage

get_song_rating(song_filename, reviewer_name, formation)

Arguments

song_filename

path to a song's review file

reviewer_name

name of the reviewer, e.g. Richel

formation

the K3 formation, in three, alphabettically ordered uppercase characters, e.g HKM for the third formation

Value

a number if there is a rating given to that formation by that reviewer, else NA.

Examples


song_filename <- get_song_path("Verliefd.md")
# 9
get_song_rating(
  reviewer_name = "Richel",
  song_filename = song_filename,
  formation = "KKK"
)
# NA
get_song_rating(
  reviewer_name = "Richel",
  song_filename = song_filename,
  formation = "JKK"
)
# 8
get_song_rating(
  reviewer_name = "Richel",
  song_filename = song_filename,
  formation = "HKM"
)
# NA
get_song_rating(
  reviewer_name = "Mark",
  song_filename = song_filename,
  formation = "KKK"
)

richelbilderbeek/K3Reviews documentation built on July 16, 2025, 1:03 p.m.