Description Usage Arguments Value Examples
View source: R/writing_functions.R
Counts the number of references (identified by the @
symbol) in a character vector, which is read from the clipboard by default.
1  | count_references(x = readClipboard())
 | 
x | 
 Character vector, Default: readClipboard()  | 
Object of class table
1 2 3 4 5 6 7 8 9 10 11 12  | ## Not run: 
if(interactive()){
 #EXAMPLE1
 text <- c("Although sex differences in emotional adjustment are sometimes",
           "found in older children [@silkAdolescentsEmotionRegulation2003;",
           "@vanlissaRoleFathersMothers2018a], a meta-analysis found little",
           "evidence for such sex differences in young children",
           "[@else-questGenderDifferencesTemperament2006a].")
 count_references(text)
 }
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.