trinker / qdapRegex

qdapRegex is a collection of regular expression tools associated with the qdap package that may be useful outside of the context of discourse analysis.
50 stars 4 forks source link

rm_citation2 may not handle apostrophe based citations #7

Closed trinker closed 9 years ago

trinker commented 9 years ago

see: https://www.debuggex.com/r/-mWUpyip8B96_Fc7

If needed it might work to do one optionally right before the data parenthesis.

trinker commented 9 years ago

As suspected:

rm_citation(
    c("I want to see Henery's (1988) old one",
    "I saw Henery et al.'s (1999, 2004b) show",
    "I saw Henery & Sau's (1999) time")
, extract=TRUE)

## [[1]]
## [1] "Henery's (1988)"
## 
## [[2]]
## [1] NA
## 
## [[3]]
## [1] NA
trinker commented 9 years ago

Fixed