Using truth table in R

9 views
Skip to first unread message

Charles masquelier

unread,
Oct 28, 2025, 9:36:35 AM10/28/25
to QCA with R
Hi everyone,

Sorry, me again. Although I did a course/training on R using the QCA package a few years ago, I don't think I was taught how I can use an already-calibrated set of conditions and outcome and make sure R knows what the conditions and outcome are.

I have calibrated the data manually as much of the data I collected were qualitative. I have taken plenty of time to do this (a few weeks...) and have created a table, which I'm attaching to this message.

As you will see, the case names are in the first column (DC.., EE... etc.). The conditions + outcome are in the first row. The outcome is 'REN'. 

I now would like to import this table into R (I know how to do this) and make sure I perform the functions needed to make sure R knows where the cases, conditions, are outcome are. 

I hope this makes sense. If so, can you help at all?

Many thanks!

Charlie

Enablr.csv

Adrian Dușa

unread,
Oct 28, 2025, 10:38:15 AM10/28/25
to QCA with R
Dear Charles,

You seem to have used R to save those datasets (but default writing the row / case names to the first column). Importing it is only a matter of:
enablr <- read.csv("/path/to/Enablr.csv", row.names = 1)

where the path to the csv file depends on your operating system, on Windows you might likely use something like C:/Users/username/Documents/Enablr.csv

Then you would be good to go with the other columns.
You might also want to read the latest help file of the function truthTable(), whose arguments (and their defaults) having changed a bit over the years. And there is also the online version of the book for practical examples:

I hope this helps,
Adrian

Reply all
Reply to author
Forward
0 new messages