🌐 English · Deutsch
Importing documents
Supported formats
| Format | Note |
|---|---|
.txt, .md |
the encoding (UTF-8, Latin-1, …) is detected automatically |
.docx |
Word documents; the text is taken over |
.pdf |
only PDFs with a text layer. Scanned PDFs without text produce a warning; use OCR first |
How to
- Choose Segments on import: blank lines (paragraphs), speaker turns or every line. More under Segments. This can be changed at any time later.
- Click Files… or drop files on the panel.
- Click Import.
As an R script:
qda_import(c("interview_01.docx", "interview_02.txt"), segments = "speaker")What happens on import
- The text is frozen: read once, converted to UTF-8 and stored in the project file. It is never read again. That is why codings never drift, even if you change the original file later.
- The original file is copied unchanged into the
folder
originals/next to the project file. - Importing the same file a second time is detected and skipped.
Survey: open answers from an online survey
New in version 0.9.3. Open answers from SoSci Survey, LimeSurvey, Qualtrics, Google Forms … saved as CSV or Excel: Documents panel → Import a survey …
- Choose the file. jellyqda suggests the role of every column: the respondent id, the open questions (become text) and variables (few different values, e.g. age group, field of study). Time stamps and similar columns are left out. Check and change the suggestion if needed.
- Pre-code the answers by question (on by default): every answer gets a code for its question, all below one code "Questions".
- The preview shows how the first document will look; then Import.
Every respondent becomes one document (e.g.
survey_DEMO_07), every open answer one
segment (the question as the first line, the answer below), the
chosen columns become document variables. Empty answers
are left out; respondents without any answer are skipped; importing the
same file again imports nobody twice. The survey file is kept in
originals/.
Then everything works as with interviews: code the answers, compare groups with the case comparison, or ask Query for "answers to question 2 that mention workload, only from nursing students".
In R: qda_survey_columns("survey.csv") and
qda_import_survey("survey.csv", code_questions = TRUE).
Excel files need the package readxl
(install.packages("readxl")); CSV works always. A fictional
example:
system.file("extdata", "survey_demo.csv", package = "jellyqda").
Pseudonymising while importing
New in version 0.10.0. The text of a document is frozen at import and cannot be changed afterwards. So names of people, places and organisations have to be replaced before – jellyqda can do that for you.
Under the import button: Pseudonymise …. Enter one
line per name, Original = Replacement, or load a list (CSV
/ Excel with two columns: original, replacement). Choose the transcripts
under Files… first – then the dialog shows how often
each name will be replaced. A name with 0 hits is perhaps spelled
differently in the transcript (or already part of a longer name, e.g.
"Schmidt" in "Anna Schmidt"; longer names are replaced first).
Click Apply: as long as the green note Pseudonymisation on is shown, Import (and the survey import) replace the names in the text and in the document name. Options: whole words only (default: "Ina" does not hit "Martina"), ignore upper/lower case.
What jellyqda does not keep: the key list (only for
this app session), the original files (they are not copied to
originals/) and the original names (the audit trail only
records how many replacements were made). Keep your key list separately
and safely – it is the only link back to the real names.
key <- qda_pseudonyms("key_list.csv") # or c("Anna Schmidt" = "[Person A]", ...)
qda_pseudonymise_preview(c("int_01.docx", "int_02.docx"), key) # check first
qda_import(c("int_01.docx", "int_02.docx"), pseudonyms = key)Variables (case attributes)
You can give every document attributes such as age, role or duration. At the bottom of the documents panel: choose the document, enter variable and value, Set variable.
The variables appear as chips above the text. In the codings list you
can filter with "Only documents with variable", e.g.
role=project lead. They are also the basis of the case comparison. If a case is
not one document – a person interviewed twice, the participants of a
group interview – use cases with their own case
variables.
qda_source_set_var("interview_01.docx", "age", "34")
qda_source_vars(1)
qda_source_del_var(1, "age")