View source: R/augmentations.R
jst_clean_page | R Documentation |
This function tries to convert character vectors into integers. This function should not be called on page ranges.
jst_clean_page(page)
page |
A character vector for pages. |
An integer vector, cleaned and converted from the input vector.
jst_clean_page("2")
# anything that is not a digit gets removed
jst_clean_page("A2-")
# a weird format from the American Journal of Sociology is convered correctly
jst_clean_page("AJSv104p126")
# this is done by searching for "p", and if it is found, extracting the
# content after "p".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.