Skip to content

dna_network: excludeValues doesn't work #308

@davidmeiering

Description

@davidmeiering

Hey, I am having troubles with the excludeValues-argument in dna_network (I am using rDNA3 and a dna3-database).

Other arguments that refer to document variables (excludeTypes and excludeSources) work fine (the outputs shows the correct number of filtered statements). But excludeValues that refers to statement variables like "concept" and "organization" doesn't work. For example, I wanted to
excludeValues = list("organization" = "Plenary")
which did not work, but with excludeAuthors = "Plenary" it works (Plenary appears both as the author of a document and also as an "organization" in a statement variable.

Here's my Code:

congruence <- dna_network( networkType = "onemode", statementType = "DNA Statement", variable1Document = FALSE, variable2Document = FALSE, variable1 = "organization", variable2 = "concept", qualifier = "agreement", qualifierAggregation = "congruence", duplicates = "include", normalization = "Jaccard", invertTypes = TRUE, excludeTypes = "Saxony", invertSources = TRUE, excludeSources = "7", excludeAuthors = "Plenary", excludeValues = list("concept" = c("ad personam")))
Output:
Filtering statements 100% │█████████████│ 2773/2773 (0:00:00 / 0:00:00)

I have not reveived an error warning, but from the number of filtered statements I can see it did only filter for the Type, Source and Author, but not for the concepts.

I am working on plenary debates and want to filter the data for specific states (= type) and election periods (=Source), but also I want to exclude some problematic frames (concepts). If I delete excludeTypes and excludeSources, then excludeValues doesn't work neither. The connection to the dna database works quite well:

set.seed(123) dna_jar() dna_init() dna_openDatabase("frames_new.dna", coderId = 1, coderPassword = "deleted")

Also, I tried to exclude other concepts to make sure it's not about the spelling of the concepts.

Maybe you have an idea what's going on, I would be very thankful!

Best, David

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions