Keys in the master calendar's cal_key
column have prefixes according to
the type of calendar entry they represent (e.g., "LAB_
" for labs,
"CLS_
" for classes/reading assignments, "EXAM_
" for exams, etc.). This
function strips those off.
Usage
strip_key_prefix(x, type, ...)
# S3 method for class 'character'
strip_key_prefix(x, type, ...)
# S3 method for class 'list'
strip_key_prefix(x, type, ...)
# S3 method for class 'data.frame'
strip_key_prefix(x, type, col = "cal_key", ...)
Value
A list or vector frame with the prefixes stripped from the contents.
A data frame with the prefixes stripped from the specified column.