createString {QCA} | R Documentation |
The function takes the values from the dataset (0 or 1) and writes the corresponding lower/upper column names.
createString(mydata, use.letters=TRUE)
mydata |
a matrix or a dataframe |
use.letters |
logical, whether or not to use letters instead of column names |
A vector of strings, with length equal to the number of rows in mydata
Adrian Dusa
Romanian Social Data Archive
adi@roda.ro
Faculty of Sociology and Social Work, University of Bucharest
adi@sas.unibuc.ro
'create.table'
test.dataset <- data.frame(First=c(1,1), Second=c(0,1), Third=c(0,0)) createString(test.dataset) # "Abc" "ABc" # using the column names instead of letters createString(test.dataset, use.letters=FALSE)