qn: Format a questionnumber and point count for RMarkdown

Description Usage Arguments Value

View source: R/qn.R

Description

Format a questionnumber and point count for RMarkdown

Usage

1
2
3
4
5
6
7
8
9
qn(
  n,
  pts = 1,
  q_string = "Q",
  pt_string = " pt.",
  pts_string = " pts.",
  pt_brackets = c("(", ")"),
  end_string = ":"
)

Arguments

n

Question number

pts

Number of points

q_string

Question abbreviation to show

pt_string

Points text for a 1-point question

pts_string

Points text for a question worth more than 2 pts

pt_brackets

Brackets to surround the number of poitns

end_string

Ending string

Value

Markdown formatted text for the question number and point count.


michaelfrancenelson/rmd.utils documentation built on Dec. 21, 2021, 5:57 p.m.