Learn R Programming

⚠️There's a newer version (2.4.6) of this package.Take me there.

qdap

qdap (Quantitative Discourse Analysis Package) is an R package designed to assist in quantitative discourse analysis. The package stands as a bridge between qualitative transcripts of dialogue and statistical analysis & visualization.

Installation

To download the development version of qdap:

Download the zip ball or tar ball, decompress and run R CMD INSTALL on it, or use the pacman package to install the development version (The user may want to install the dev version of reports first):

if (!require("pacman")) install.packages("pacman")
pacman::p_load_gh(
    "trinker/qdapDictionaries",
    "trinker/qdapRegex",
    "trinker/qdapTools",
    "trinker/qdap"
)

Help

Contact

You are welcome to:

Note: If you are reporting a bug make sure you have first read the Cleaning Text & Debugging vignette

Copy Link

Version

Install

install.packages('qdap')

Monthly Downloads

1,849

Version

2.3.0

License

GPL-2

Maintainer

Last Published

May 15th, 2018

Functions in qdap (2.3.0)

Animate.lexical_classification

Animate Formality
cm_2long

A Generic to Long Function
Network

Generic Network Method
plot.linsear_write_scores

Plots a linsear_write_scores Object
Animate.gantt

Gantt Durations
Animate.polarity

Animate Polarity
DATA2

Fictitious Repeated Measures Classroom Dialogue
Animate.formality

Animate Formality
Trim

Remove Leading/Trailing White Space
check_spelling_interactive.check_spelling

Check Spelling
Dissimilarity

Dissimilarity Statistics
check_spelling_interactive.factor

Check Spelling
Title

Add Title to Select qdap Plots
DATA.SPLIT

Fictitious Split Sentence Classroom Dialogue
Network.lexical_classification

Network Lexical Classification
add_incomplete

Detect Incomplete Sentences; Add | Endmark
Animate.discourse_map

Discourse Map
Network.polarity

Network Polarity
comma_spacer

Ensure Space After Comma
counts.fry

Readability Measures
mcsv_r

Read/Write Multiple csv Files at a Time
plot.lexical_classification_preprocessed

Plots a lexical_classification_preprocessed Object
capitalizer

Capitalize Select Words
formality

Formality Score
condense

Condense Dataframe Columns
Network.formality

Network Formality
build_qdap_vignette

Replace Temporary Introduction to qdap Vignette
Animate.gantt_plot

Gantt Plot
cm_combine.dummy

Find Co-occurrence Between Dummy Codes
DATA

Fictitious Classroom Dialogue
as.tdm

tm Package Compatibility Tools: Apply to or Convert to/from Term Document Matrix or Document Term Matrix
clean

Remove Escaped Characters
cm_distance

Distance Matrix Between Codes
check_spelling

Check Spelling
cm_code.transform

Transform Codes
Filter.all_words

Filter
gantt_rep

Generate Unit Spans for Repeated Measures
bag_o_words

Bag of Words
counts.flesch_kincaid

Readability Measures
counts.polarity

Polarity
%&%

qdap Chaining
chunker

Break Text Into Ordered Word Chunks
cm_dummy2long

Convert cm_combine.dummy Back to Long
add_s

Make Plural (or Verb to Singular) Versions of Words
wfm

Word Frequency Matrix
check_spelling_interactive.character

Check Spelling
discourse_map

Discourse Mapping
dir_map

Map Transcript Files from a Directory to a Script
bracketX

Bracket Parsing
plot.lexical

Plots a lexical Object
common.list

list Method for common
cm_range2long

Transform Codes to Start-End Durations
+.Network

Add themes to a Network object.
cm_df2long

Transform Codes to Start-End Durations
NAer

Replace Missing Values (NA)
Animate

Generic Animate Method
cm_code.blank

Blank Code Transformation
cm_long2dummy

Stretch and Dummy Code cm_xxx2long
counts.formality

Formality
common

Find Common Words Between Groups
counts.word_stats

Word Stats
cumulative

Cumulative Scores
Animate.character

Animate Character
htruncdf

Dataframe Viewing
counts.pronoun_type

Question Counts
Search

Search Columns of a Data Frame
colcomb2class

Combine Columns to Class
automated_readability_index

Readability Measures
adjacency_matrix

Takes a Matrix and Generates an Adjacency Matrix
colsplit2df

Wrapper for colSplit that Returns Dataframe(s)
cm_time.temp

Time Span Code Sheet
cm_df.fill

Range Coding
plot.cumulative_animated_formality

Plots a cumulative_animated_formality Object
plot.animated_formality

Plots a animated_formality Object
outlier_labeler

Locate Outliers in Numeric String
beg2char

Grab Begin/End of String to Character
plot.animated_discourse_map

Plots an animated_discourse_map Object
colSplit

Separate a Column Pasted by paste2
cm_code.combine

Combine Codes
plot.cumulative_animated_lexical_classification

Plots a cumulative_animated_lexical_classification Object
blank2NA

Replace Blanks in a dataframe
imperative

Intuitively Remark Sentences as Imperative
gantt_plot

Gantt Plot
counts.SMOG

Readability Measures
incomplete_replace

Denote Incomplete End Marks With "|"
cm_df.transcript

Transcript With Word Number
paste2

Paste an Unspecified Number Of Text Columns
plot.linsear_write_count

Plots a linsear_write_count Object
cm_code.exclude

Exclude Codes
counts.object_pronoun_type

Question Counts
counts.subject_pronoun_type

Question Counts
plot.cumulative_end_mark

Plots a cumulative_end_mark Object
plot.cumulative_formality

Plots a cumulative_formality Object
plot.end_mark_by

Plots a end_mark_by Object
all_words

Searches Text Column for Words
plot.readability_count

Plots a readability_count Object
cm_code.overlap

Find Co-occurrence Between Codes
print.formality

Prints a formality Object
plot.end_mark_by_count

Plots a end_mark_by_count Object
cm_range.temp

Range Code Sheet
plot.lexical_classification

Plots a lexical_classification Object
gantt

Gantt Durations
counts.pos

Parts of Speech
dispersion_plot

Lexical Dispersion Plot
inspect_text

Inspect Text Vectors
plot.wfm

Plots a wfm object
cm_df.temp

Break Transcript Dialogue into Blank Code Matrix
check_text

Check Text For Potential Problems
dist_tab

SPSS Style Frequency Tables
plot.cumulative_combo_syllable_sum

Plots a cumulative_combo_syllable_sum Object
plot.combo_syllable_sum

Plots a combo_syllable_sum Object
plot.readability_score

Plots a readability_score Object
duplicates

Find Duplicated Words in a Text String
counts.automated_readability_index

Readability Measures
counts.word_length

Word Length Counts
print.flesch_kincaid

Prints an flesch_kincaid Object
counts.linsear_write

Readability Measures
counts.character_table

Term Counts
counts.question_type

Question Counts
plot.cumulative_syllable_freq

Plots a cumulative_syllable_freq Object
phrase_net

Phrase Nets
left_just

Text Justification
gantt_wrap

Gantt Plot
gradient_cloud

Gradient Word Cloud
new_project

Project Template
plot.word_stats

Plots a word_stats object
preprocessed.end_mark_by

Question Counts
freq_terms

Find Frequent Terms
pres_debate_raw2012

First 2012 U.S. Presidential Debate
counts.termco

Term Counts
cm_time2long

Transform Codes to Start-End Times
plot.wfdf

Plots a wfdf object
counts.coleman_liau

Readability Measures
counts.word_position

Word Position
end_mark

Sentence End Marks
mraja1spl

Romeo and Juliet: Act 1 Dialogue Merged with Demographics and Split
counts.end_mark_by

Question Counts
end_inc

Test for Incomplete Sentences
hamlet

Hamlet (Complete & Split by Sentence)
counts.pos_by

Parts of Speech
env.syl

Syllable Lookup Environment
plot.word_stats_counts

Plots a word_stats_counts Object
print.Dissimilarity

Prints a Dissimilarity object
plot.animated_polarity

Plots an animated_polarity Object
exclude

Exclude Elements From a Vector
plot.sent_split

Plots a sent_split Object
mraja1

Romeo and Juliet: Act 1 Dialogue Merged with Demographics
multiscale

Nested Standardization
kullback_leibler

Kullback Leibler Statistic
key_merge

Merge Demographic Information with Person/Text Transcript
plot.end_mark_by_score

Plots a end_mark_by_score Object
vertex_apply

Apply Parameter to List of Igraph Vertices/Edges
print.Network

Prints a Network Object
diversity

Diversity Statistics
multigsub

Multiple gsub
plot.table_score

Plots a table_score Object
print.animated_polarity

Prints an animated_polarity Object
outlier_detect

Detect Outliers in Text
preprocessed.formality

Formality
plot.end_mark_by_preprocessed

Plots a end_mark_by_preprocessed Object
print.lexical_classification

Prints an lexical_classification Object
plot.character_table

Plots a character_table Object
plot.SMOG

Plots a SMOG Object
name2sex

Names to Gender
object_pronoun_type

Count Object Pronouns Per Grouping Variable
plot.cm_distance

Plots a cm_distance object
plot.question_type

Plots a question_type Object
lexical_classification

Lexical Classification Score
plot.Network

Plots a Network Object
plot.termco

Plots a termco object
plot.end_mark

Plots an end_mark Object
is.global

Test If Environment is Global
print.animated_lexical_classification

Prints an animated_lexical_classification Object
plot.cumulative_lexical_classification

Plots a cumulative_lexical_classification Object
plot.animated_character

Plots an animated_character Object
print.cumulative_animated_formality

Prints a cumulative_animated_formality Object
plot.cumulative_animated_polarity

Plots a cumulative_animated_polarity Object
plot.end_mark_by_proportion

Plots a end_mark_by_proportion Object
print.cumulative_animated_lexical_classification

Prints a cumulative_animated_lexical_classification Object
print.SMOG

Prints an SMOG Object
plot.formality

Plots a formality Object
plot.diversity

Plots a diversity object
plot.rmgantt

Plots a rmgantt object
plot.automated_readability_index

Plots a automated_readability_index Object
polarity

Polarity Score (Sentiment Analysis)
qheat

Quick Heatmap
ngrams

Generate ngrams
plot.polarity_count

Plots a polarity_count Object
plot.kullback_leibler

Plots a kullback_leibler object
print.polarity_count

Prints a polarity_count Object
plot.coleman_liau

Plots a coleman_liau Object
proportions

Generic Proportions Method
print.sums_gantt

Prints a sums_gantt object
plot.animated_lexical_classification

Plots an animated_lexical_classification Object
plot.formality_scores

Plots a formality_scores Object
plot.type_token_ratio

Plots a type_token_ratio Object
print.syllable_sum

Prints an syllable_sum object
print.polarity

Prints an polarity Object
proportions.word_position

Word Position
plot.cmspans

Plots a cmspans object
preprocessed.pos

Parts of Speech
print.lexical_classification_by

Prints a lexical_classification Object
plot.subject_pronoun_type

Plots an subject_pronoun_type Object
print.question_type

Prints a question_type object
preprocessed.object_pronoun_type

Question Counts
print.automated_readability_index

Prints an automated_readability_index Object
scores.pos_by

Parts of Speech
print.coleman_liau

Prints an coleman_liau Object
plot.sums_gantt

Plots a sums_gantt object
plot.sum_cmspans

Plot Summary Stats for a Summary of a cmspans Object
plot.cumulative_polarity

Plots a cumulative_polarity Object
plot.linsear_write

Plots a linsear_write Object
plot.flesch_kincaid

Plots a flesch_kincaid Object
print.wfm

Prints a wfm Object
print.question_type_preprocessed

Prints a question_type_preprocessed object
plot.lexical_classification_score

Plots a lexical_classification_score Object
preprocessed

Generic Preprocessed Method
plot.pos_preprocessed

Plots a pos_preprocessed Object
plot.pos

Plots a pos Object
plot.polarity_score

Plots a polarity_score Object
plot.question_type_preprocessed

Plots a question_type_preprocessed Object
plot.table_count

Plots a table_count Object
stemmer

Stem Text
print.diversity

Prints a diversity object
plot.word_cor

Plots a word_cor object
print.pos

Prints a pos Object.
plot.pos_by

Plots a pos_by Object
plot.pronoun_type

Plots an pronoun_type Object
plot.word_length

Plots a word_length Object
plot.discourse_map

Plots a discourse_map Object
preprocessed.pos_by

Parts of Speech
print.wfm_summary

Prints a wfm_summary Object
prop

Convert Raw Numeric Matrix or Data Frame to Proportions
potential_NA

Search for Potential Missing Values
plot.weighted_wfm

Plots a weighted_wfm object
print.animated_character

Prints an animated_character Object
plot.word_position

Plots a word_position object
plot.syllable_freq

Plots a syllable_freq Object
plot.freq_terms

Plots a freq_terms Object
plot.word_proximity

Plots a word_proximity object
raj

Romeo and Juliet (Unchanged & Complete)
print.phrase_net

Prints a phrase_net Object
sentiment_frame

Power Score (Sentiment Analysis)
print.all_words

Prints an all_words Object
print.animated_formality

Prints a animated_formality Object
speakerSplit

Break and Stretch if Multiple Persons per Cell
print.adjacency_matrix

Prints an adjacency_matrix Object
plot.gantt

Plots a gantt object
plot.object_pronoun_type

Plots an object_pronoun_type Object
print.animated_discourse_map

Prints an animated_discourse_map Object
print.pronoun_type

Prints a pronoun_type object
preprocessed.check_spelling_interactive

Check Spelling
print.combo_syllable_sum

Prints an combo_syllable_sum object
plot.table_proportion

Plots a table_proportion Object
print.pos_by

Prints a pos_by Object.
print.boolean_qdap

Prints a boolean_qdap object
print.cumulative_end_mark

Prints a cumulative_end_mark Object
print.check_text

Prints a check_text Object
plot.polarity

Plots a polarity Object
proportions.word_length

Word Length Counts
print.sum_cmspans

Prints a sum_cmspans object
print.object_pronoun_type

Prints a object_pronoun_type object
read.transcript

Read Transcripts Into R
print.colsplit2df

Prints a colsplit2df Object.
preprocessed.subject_pronoun_type

Question Counts
preprocessed.pronoun_type

Question Counts
preprocessed.lexical_classification

Lexical Classification
print.qdapProj

Prints a qdapProj Object
print.character_table

Prints a character_table object
qprep

Quick Preparation of Text
print.inspect_text

Prints an inspect_text Object
rm_stopwords

Remove Stop Words
print.cumulative_lexical_classification

Prints a cumulative_lexical_classification Object
print.cumulative_formality

Prints a cumulative_formality Object
print.end_mark

Prints an end_mark object
print.cumulative_polarity

Prints a cumulative_polarity Object
print.kullback_leibler

Prints a kullback_leibler Object.
print.fry

Prints an fry Object
print.formality_scores

Prints a formality_scores object
print.word_list

Prints a word_list Object
raj.act.3

Romeo and Juliet: Act 3
raw.time.span

Minimal Raw Time Span Data Set
rm_row

Remove Rows That Contain Markers
print.readability_count

Prints a readability_count Object
print.end_mark_by_preprocessed

Prints a end_mark_by_preprocessed object
replace_contraction

Replace Contractions
print.check_spelling_interactive

Prints a check_spelling_interactive Object
proportions.pronoun_type

Question Counts
print.word_position

Prints a word_position object.
pos

Parts of Speech Tagging
t.DocumentTermMatrix

Transposes a DocumentTermMatrix object
print.cumulative_syllable_freq

Prints a cumulative_syllable_freqObject
preprocessed.question_type

Question Counts
print.linsear_write

Prints an linsear_write Object
print.readability_score

Prints a readability_score Object
print.word_stats_counts

Prints a word_stats_counts object
print.cumulative_animated_polarity

Prints a cumulative_animated_polarity Object
preprocessed.word_position

Word Position
pres_debates2012

2012 U.S. Presidential Debates
print.which_misspelled

Prints a which_misspelled Object
print.table_proportion

Prints a table_proportion object
scrubber

Clean Imported Text
print.pos_preprocessed

Prints a pos_preprocessed object
print.word_associate

Prints a word_associate object
scores.end_mark_by

Question Counts
print.termco

Prints a termco object.
print.table_score

Prints a table_score object
print.linsear_write_scores

Prints a linsear_write_scores Object
print.cumulative_combo_syllable_sum

Prints a cumulative_combo_syllable_sum Object
print.check_spelling

Prints a check_spelling Object
print.cm_distance

Prints a cm_distance Object
replace_number

Replace Numbers With Text Representation
sentSplit

Sentence Splitting
scores.flesch_kincaid

Readability Measures
visual

Generic visual Method
proportions.character_table

Term Counts
print.subject_pronoun_type

Prints a subject_pronoun_type object
proportions.end_mark_by

Question Counts
word_proximity

Proximity Matrix Between Words
print.lexical_classification_preprocessed

Prints a lexical_classification_preprocessed Object
rajSPLIT

Romeo and Juliet (Complete & Split)
proportions.question_type

Question Counts
proportions.object_pronoun_type

Question Counts
proportions.formality

Formality
raj.act.1

Romeo and Juliet: Act 1
t.TermDocumentMatrix

Transposes a TermDocumentMatrix object
proportions.termco

Term Counts
word_network_plot

Word Network Plot
proportions.subject_pronoun_type

Question Counts
scores.lexical_classification

Lexical Classification
rajPOS

Romeo and Juliet Split in Parts of Speech
replace_ordinal

Replace Mixed Ordinal Numbers With Text Representation
raj.act.5

Romeo and Juliet: Act 5
print.sub_holder

Prints a sub_holder object
raj.demographics

Romeo and Juliet Demographics
scores.formality

Formality
scores

Generic Scores Method
print.end_mark_by

Prints an end_mark_by object
visual.discourse_map

Discourse Map
print.qdap_context

Prints a qdap_context object
print.discourse_map

Prints a discourse_map Object
space_fill

Replace Spaces
print.lexical_classification_score

Prints a lexical_classification_score Object
word_stats

Descriptive Word Statistics
word_position

Word Position
proportions.pos

Parts of Speech
replace_abbreviation

Replace Abbreviations
scores.fry

Readability Measures
raj.act.4

Romeo and Juliet: Act 4
print.ngrams

Prints an ngrams object
scores.pronoun_type

Question Counts
termco_c

Combine Columns from a termco Object
print.polarity_score

Prints a polarity_score Object
trans_context

Print Context Around Indices
sample.time.span

Minimal Time Span Data Set
print.linsear_write_count

Prints a linsear_write_count Object
print.sent_split

Prints a sent_split object
spaste

Add Leading/Trailing Spaces
trans_venn

Venn Diagram by Grouping Variable
qtheme

Add themes to a Network object.
print.trunc

Prints a trunc object
type_token_ratio

Type-Token Ratio
raj.act.1POS

print.polysyllable_sum

Prints an polysyllable_sum object
subject_pronoun_type

Count Subject Pronouns Per Grouping Variable
print.word_cor

Prints a word_cor object
scores.word_position

Word Position
rank_freq_mplot

Rank Frequency Plot
scores.word_stats

Word Stats
scores.linsear_write

Readability Measures
print.table_count

Prints a table_count object
random_sent

Generate Random Dialogue Data
print.type_token_ratio

Prints a type_token_ratio Object
unique_by

Find Unique Words by Grouping Variable
termco

Search For and Count Terms
pronoun_type

Count Object/Subject Pronouns Per Grouping Variable
summary.cmspans

Summarize a cmspans object
print.word_length

Prints a word_length object
print.word_proximity

Prints a word_proximity object
qdap

qdap: Quantitative Discourse Analysis Package
word_length

Count of Word Lengths Type
word_diff_list

Differences In Word Use Between Groups
question_type

Count of Question Type
synonyms

Search For Synonyms
print.word_stats

Prints a word_stats object
word_list

Raw Word Lists/Frequency Counts
scores.SMOG

Readability Measures
qdap_df

Create qdap Specific Data Structure
qcv

Quick Character Vector
proportions.pos_by

Parts of Speech
qcombine

Combine Columns
syllable_sum

Syllabication
summary.wfm

Summarize a wfm object
raj.act.2

Romeo and Juliet: Act 2
replace_symbol

Replace Symbols With Word Equivalents
replacer

Replace Cells in a Matrix or Data Frame
scores.termco

Term Counts
scores.object_pronoun_type

Question Counts
scores.automated_readability_index

Readability Measures
scores.coleman_liau

Readability Measures
word_cor

Find Correlated Words
scores.polarity

Polarity
strWrap

Wrap Character Strings to Format Paragraphs
scores.word_length

Word Length Counts
scores.character_table

Term Counts
scores.question_type

Question Counts
strip

Strip Text
weight

Weight a qdap Object
trans_cloud

Word Clouds by Grouping Variable
tot_plot

Visualize Word Length by Turn of Talk
scores.subject_pronoun_type

Question Counts
summary.wfdf

Summarize a wfdf object
word_associate

Find Associated Words
word_count

Word Counts
counts

Generic Counts Method