strip_key_prefix | R Documentation |
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.
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(df, type, col = "cal_key")
x |
An object to process. |
type |
The type of calendar entry to strip (e.g., " |
... |
Arguments to pass to specialized methods. |
df |
The data frame to process. |
col |
The column where the keys are located (by default " |
A list or vector frame with the prefixes stripped from the contents.
A data frame with the prefixes stripped from the specified column.
strip_key_prefix(character)
: Strip key prefixes from character vector.
strip_key_prefix(list)
: Strip key prefixes from a list of character objects.
strip_key_prefix(data.frame)
: Strip key prefixes from a column in a data frame.
add_key_prefix
add_key_prefix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.