createString {QCA}R Documentation

Create a vector of strings containing combinations of presence/absence of conditions

Description

The function takes the values from the dataset (0 or 1) and writes the corresponding lower/upper column names.

Usage

createString(mydata, use.letters=TRUE)

Arguments

mydata a matrix or a dataframe
use.letters logical, whether or not to use letters instead of column names

Value

A vector of strings, with length equal to the number of rows in mydata

Author(s)

Adrian Dusa
Romanian Social Data Archive, University of Bucharest
adi@roda.ro

See Also

'create.table'

Examples

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)


[Package QCA version 0.4-2 Index]