previousabs_fn: To Retrive the Abstracts from the large corpus for given years.
Description
This function is used to extract the abstracts from the large corpus excluding the years under study. Its output is used in other functions like BWI and genes_BWI
Usage
previousabs_fn(yrs_to_exclude, theme, parentabs)
Arguments
yrs_to_exclude
yrs_to_exclude is list of years we want to exclude from the corpus
theme
theme is a character value specifying the themes for the Abstracts.
parentabs
parentabs an S4 object containing the Abstracts.
Value
It returns an S4 object containing the abstracts of the given year.
# NOT RUN {test = currentabs_fn(as.character(2015:2010), "atherosclerosis", diabetesabs
# }# NOT RUN {## here we will get the abstracts before 2010 for 'atherosclerosis'from the large corpus .# }