I have coded a number of texts in RQDA and I am trying to export the categories in a database. I would be looking as an final result to be a Data Frame something like this:
Files Categories
File1 Category1
File2 Category2
File3 Category3
File4 Category2
File5 Category1
I tried the following code which I have adapted from here Rblogger:
categories <- RQDAQuery("select filecat.name as category, source.name as filename
from treefile, filecat, source
where treefile.catid=filecat.catid and treefile.fid=source.id and treefile.status=1")
But it has resulted in an empty file so far:
str(categories)
'data.frame': 0 obs. of 2 variables:
$ category: chr
$ filename: chr
> dim(categories)
[1] 0 2
> summarise(categories)
data frame with 0 columns and 1 row
Any help is welcome.