massimoaria / bibliometrix

An R-tool for comprehensive science mapping analysis. A package for quantitative research in scientometrics and bibliometrics.
https://www.bibliometrix.org
Other
511 stars 149 forks source link

Regarding Cleaning datasets for Bibliometrix #119

Closed shail847 closed 4 years ago

shail847 commented 4 years ago

I have merged two datasets one from web of science and another from Scopus for bibliometric analysis. I want to clean this merged Master_Sheet. In the first Variable "AU" , there are 2 observations with anonymous author and given "[ANONYMOUS]". I am deleting these two rows, from A <- subset(Master_Sheet, AU != "[ANONYMOUS]"). it is running successfully but not deleting any rows from datasets. Kindly help me to solve this.

massimoaria commented 4 years ago

Try to use: A <- subset(Master_Sheet, regexpr("ANONYMOUS",Master_Sheet$AU)==-1)

shail847 commented 4 years ago

Thanks Massimo....Now its working.