Ronggui / RQDA

R-based Qualitative Data Analysis
http://rqda.r-forge.r-project.org
Other
113 stars 31 forks source link

fixed codingBySearch #29

Open PhilippKuntschik opened 5 years ago

PhilippKuntschik commented 5 years ago

Dear Ronggui,

I tried myself on fixing and enhancing the codingBySearch function:

I was especially interested in fixing cases, where the coding search pattern spanned across multiple analysis units (e.g. multi word patterns combined with a space separator). I took special care on the concatenate functionality to keep compatibility.

I tested with the following examples:

multi word

"The Semantic Web shares many goals with Decision Support Systems DSS, e.g., being able to precisely interpret information, in order to deliver relevant, reliable and accurate information to a user when and where it is needed."

codingBySearch("Decision Support System", fid=getFileIds(), cid=1, seperator="[ .,;-]")

concatenation

"Large amounts of Linked Data Linked Data geo-spatial information have been made available with the growth of the Web of Data."

codingBySearch("Linked Data", fid=getFileIds(), cid=1, seperator="[ .,;-]", concatenate=TRUE)

concatenation 2

"The Subject-Predicate-Object triple annotation system is now well adopted in the research community, however, it does not always speak to end-users."

codingBySearch("Subject|Predicate|Object", fid=getFileIds(), cid=1, seperator="[ .,;-]", concatenate=TRUE)

sub-word

"We organize these building blocks of dataset profiling in a taxonomy."

codingBySearch("ld", fid=getFileIds(), cid=1, seperator="[ .,;-]", concatenate=TRUE)
Chris-JAC commented 4 years ago

Thanks Philipp, this code closes down a whole lot of errors on the dbFetch. Appreciate your efforts in this ;-).