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

Description Usage Arguments Value Examples

View source: R/get_song_rating.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 Dec. 18, 2020, 10:40 a.m.