Description Usage Arguments Details Value See Also
Extract SNPs from abstracts in a data frame.
1 2 3 4 5 6 7 | extract_snp(
df,
pattern = snp_pattern,
col.abstract = Abstract,
indicate = FALSE,
discard = FALSE
)
|
df |
Data frame containing abstracts. |
pattern |
String. Regex pattern to identify SNPs. |
col.abstract |
Symbol. Column containing abstracts. |
indicate |
Boolean. If |
discard |
Boolean. If |
Extract SNPs from abstracts in a data frame. SNPs are added to the data frame in a separate column. Furthermore, an optional column can indicate if SNPs are generally present in an abstract.
Data frame. If discard = FALSE
, return the data frame with
an additional column for SNPs.
If discard = TRUE
, return only abstracts containing SNPs.
count_snp()
,
get_snp()
,
subset_snp()
Other extract functions:
extract_mir_df()
,
extract_mir_string()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.