Learn R Programming

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

qdap (version 2.2.4)

Bridging the Gap Between Qualitative Data and Quantitative Analysis

Description

Automates many of the tasks associated with quantitative discourse analysis of transcripts containing discourse including frequency counts of sentence types, words, sentences, turns of talk, syllables and other assorted analysis tasks. The package provides parsing tools for preparing transcript data. Many functions enable the user to aggregate data by any number of grouping variables, providing analysis and seamless integration with other R packages that undertake higher level analysis and visualization of text. This affords the user a more efficient and targeted analysis. 'qdap' is designed for transcript analysis, however, many functions are applicable to other areas of Text Mining/Natural Language Processing.

Copy Link

Version

Install

install.packages('qdap')

Monthly Downloads

1,202

Version

2.2.4

License

GPL-2

Maintainer

Tyler Rinker

Last Published

October 9th, 2015

Functions in qdap (2.2.4)

Dissimilarity

Dissimilarity Statistics
counts.pos

Parts of Speech
DATA

Fictitious Classroom Dialogue
cm_long2dummy

Stretch and Dummy Code cm_xxx2long
Animate.character

Animate Character
counts.subject_pronoun_type

Question Counts
counts.formality

Formality
add_incomplete

Detect Incomplete Sentences; Add | Endmark
comma_spacer

Ensure Space After Comma
DATA.SPLIT

Fictitious Split Sentence Classroom Dialogue
Network.lexical_classification

Network Lexical Classification
dist_tab

SPSS Style Frequency Tables
Animate.gantt

Gantt Durations
beg2char

Grab Begin/End of String to Character
Search

Search Columns of a Data Frame
check_spelling_interactive.check_spelling

Check Spelling
build_qdap_vignette

Replace Temporary Introduction to qdap Vignette
cm_code.combine

Combine Codes
as.tdm

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

Bag of Words
NAer

Replace Missing Values (NA)
adjacency_matrix

Takes a Matrix and Generates an Adjacency Matrix
bracketX

Bracket Parsing
capitalizer

Capitalize Select Words
counts.automated_readability_index

Readability Measures
automated_readability_index

Readability Measures
cm_combine.dummy

Find Co-occurrence Between Dummy Codes
counts.SMOG

Readability Measures
counts.polarity

Polarity
common

Find Common Words Between Groups
discourse_map

Discourse Mapping
cm_code.overlap

Find Co-occurrence Between Codes
cm_time.temp

Time Span Code Sheet
cm_code.blank

Blank Code Transformation
counts.character_table

Term Counts
Trim

Remove Leading/Trailing White Space
counts.flesch_kincaid

Readability Measures
colcomb2class

Combine Columns to Class
Animate.gantt_plot

Gantt Plot
counts.word_length

Word Length Counts
common.list

list Method for common
Animate.polarity

Animate Polarity
check_text

Check Text For Potential Problems
Animate.discourse_map

Discourse Map
wfm

Word Frequency Matrix
all_words

Searches Text Column for Words
add_s

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

Remove Escaped Characters
Animate.lexical_classification

Animate Formality
check_spelling

Check Spelling
Animate

Generic Animate Method
Animate.formality

Animate Formality
check_spelling_interactive.factor

Check Spelling
cm_code.transform

Transform Codes
Title

Add Title to Select qdap Plots
imperative

Intuitively Remark Sentences as Imperative
dispersion_plot

Lexical Dispersion Plot
plot.lexical_classification

Plots a lexical_classification Object
%&%

qdap Chaining
outlier_labeler

Locate Outliers in Numeric String
plot.word_proximity

Plots a word_proximity object
Network.formality

Network Formality
preprocessed.lexical_classification

Lexical Classification
plot.animated_lexical_classification

Plots an animated_lexical_classification Object
counts.object_pronoun_type

Question Counts
lexical_classification

Lexical Classification Score
htruncdf

Dataframe Viewing
plot.cumulative_end_mark

Plots a cumulative_end_mark Object
plot.cumulative_animated_formality

Plots a cumulative_animated_formality Object
colsplit2df

Wrapper for colSplit that Returns Dataframe(s)
print.cumulative_formality

Prints a cumulative_formality Object
plot.cumulative_formality

Plots a cumulative_formality Object
print.SMOG

Prints an SMOG Object
is.global

Test If Environment is Global
cm_code.exclude

Exclude Codes
gantt

Gantt Durations
incomplete_replace

Denote Incomplete End Marks With "|"
chunker

Break Text Into Ordered Word Chunks
cm_distance

Distance Matrix Between Codes
plot.readability_count

Plots a readability_count Object
cm_df.fill

Range Coding
cm_df.temp

Break Transcript Dialogue into Blank Code Matrix
plot.linsear_write_scores

Plots a linsear_write_scores Object
paste2

Paste an Unspecified Number Of Text Columns
cm_range.temp

Range Code Sheet
vertex_apply

Apply Parameter to List of Igraph Vertices/Edges
counts.termco

Term Counts
cm_df2long

Transform Codes to Start-End Durations
cm_time2long

Transform Codes to Start-End Times
end_inc

Test for Incomplete Sentences
cm_2long

A Generic to Long Function
plot.sums_gantt

Plots a sums_gantt object
left_just

Text Justification
plot.lexical_classification_score

Plots a lexical_classification_score Object
plot.syllable_freq

Plots a syllable_freq Object
print.Dissimilarity

Prints a Dissimilarity object
name2sex

Names to Gender
plot.cm_distance

Plots a cm_distance object
condense

Condense Dataframe Columns
plot.animated_discourse_map

Plots an animated_discourse_map Object
env.syl

Syllable Lookup Environment
plot.cmspans

Plots a cmspans object
multiscale

Nested Standardization
plot.cumulative_animated_lexical_classification

Plots a cumulative_animated_lexical_classification Object
multigsub

Multiple gsub
blank2NA

Replace Blanks in a dataframe
mraja1spl

Romeo and Juliet: Act 1 Dialogue Merged with Demographics and Split
print.colsplit2df

Prints a colsplit2df Object.
new_project

Project Template
plot.end_mark_by

Plots a end_mark_by Object
preprocessed.pronoun_type

Question Counts
plot.weighted_wfm

Plots a weighted_wfm object
phrase_net

Phrase Nets
print.polarity_count

Prints a polarity_count Object
plot.animated_polarity

Plots an animated_polarity Object
end_mark

Sentence End Marks
plot.formality

Plots a formality Object
plot.cumulative_lexical_classification

Plots a cumulative_lexical_classification Object
plot.subject_pronoun_type

Plots an subject_pronoun_type Object
plot.pronoun_type

Plots an pronoun_type Object
plot.SMOG

Plots a SMOG Object
plot.cumulative_animated_polarity

Plots a cumulative_animated_polarity Object
DATA2

Fictitious Repeated Measures Classroom Dialogue
plot.word_length

Plots a word_length Object
counts.pos_by

Parts of Speech
plot.question_type

Plots a question_type Object
print.cumulative_polarity

Prints a cumulative_polarity Object
Network.polarity

Network Polarity
Network

Generic Network Method
print.check_spelling_interactive

Prints a check_spelling_interactive Object
counts.linsear_write

Readability Measures
plot.cumulative_combo_syllable_sum

Plots a cumulative_combo_syllable_sum Object
print.end_mark_by

Prints an end_mark_by object
counts.pronoun_type

Question Counts
print.discourse_map

Prints a discourse_map Object
print.qdap_context

Prints a qdap_context object
plot.end_mark

Plots an end_mark Object
plot.lexical_classification_preprocessed

Plots a lexical_classification_preprocessed Object
preprocessed.end_mark_by

Question Counts
cm_df.transcript

Transcript With Word Number
preprocessed.object_pronoun_type

Question Counts
print.automated_readability_index

Prints an automated_readability_index Object
preprocessed.pos

Parts of Speech
print.animated_lexical_classification

Prints an animated_lexical_classification Object
print.which_misspelled

Prints a which_misspelled Object
dir_map

Map Transcript Files from a Directory to a Script
print.trunc

Prints a trunc object
print.kullback_leibler

Prints a kullback_leibler Object.
colSplit

Separate a Column Pasted by paste2
counts.fry

Readability Measures
plot.sum_cmspans

Plot Summary Stats for a Summary of a cmspans Object
cumulative

Cumulative Scores
sentiment_frame

Power Score (Sentiment Analysis)
print.animated_polarity

Prints an animated_polarity Object
+.Network

Add themes to a Network object.
gantt_plot

Gantt Plot
gantt_rep

Generate Unit Spans for Repeated Measures
print.sum_cmspans

Prints a sum_cmspans object
counts

Generic Counts Method
print.formality

Prints a formality Object
print.pronoun_type

Prints a pronoun_type object
duplicates

Find Duplicated Words in a Text String
raj.act.4

Romeo and Juliet: Act 4
plot.Network

Plots a Network Object
print.syllable_sum

Prints an syllable_sum object
print.diversity

Prints a diversity object
proportions.pos

Parts of Speech
print.sums_gantt

Prints a sums_gantt object
ngrams

Generate ngrams
plot.type_token_ratio

Plots a type_token_ratio Object
counts.question_type

Question Counts
plot.lexical

Plots a lexical Object
summary.wfdf

Summarize a wfdf object
print.end_mark_by_preprocessed

Prints a end_mark_by_preprocessed object
print.termco

Prints a termco object.
print.lexical_classification

Prints an lexical_classification Object
plot.coleman_liau

Plots a coleman_liau Object
replace_abbreviation

Replace Abbreviations
print.word_stats_counts

Prints a word_stats_counts object
print.sent_split

Prints a sent_split object
print.sub_holder

Prints a sub_holder object
plot.termco

Plots a termco object
plot.formality_scores

Plots a formality_scores Object
plot.word_stats_counts

Plots a word_stats_counts Object
raj.act.1

Romeo and Juliet: Act 1
print.word_stats

Prints a word_stats object
print.lexical_classification_score

Prints a lexical_classification_score Object
key_merge

Merge Demographic Information with Person/Text Transcript
pres_debates2012

2012 U.S. Presidential Debates
rm_stopwords

Remove Stop Words
plot.word_position

Plots a word_position object
plot.polarity_count

Plots a polarity_count Object
print.cumulative_animated_formality

Prints a cumulative_animated_formality Object
plot.table_count

Plots a table_count Object
inspect_text

Inspect Text Vectors
freq_terms

Find Frequent Terms
plot.table_proportion

Plots a table_proportion Object
plot.sent_split

Plots a sent_split Object
check_spelling_interactive.character

Check Spelling
potential_NA

Search for Potential Missing Values
print.adjacency_matrix

Prints an adjacency_matrix Object
print.Network

Prints a Network Object
print.coleman_liau

Prints an coleman_liau Object
print.end_mark

Prints an end_mark object
print.polarity_score

Prints a polarity_score Object
print.linsear_write

Prints an linsear_write Object
proportions.character_table

Term Counts
plot.end_mark_by_count

Plots a end_mark_by_count Object
print.animated_character

Prints an animated_character Object
proportions.object_pronoun_type

Question Counts
plot.readability_score

Plots a readability_score Object
word_position

Word Position
print.character_table

Prints a character_table object
qheat

Quick Heatmap
print.polysyllable_sum

Prints an polysyllable_sum object
scores.polarity

Polarity
print.cumulative_end_mark

Prints a cumulative_end_mark Object
raj.act.3

Romeo and Juliet: Act 3
scores.end_mark_by

Question Counts
print.word_associate

Prints a word_associate object
rajSPLIT

Romeo and Juliet (Complete & Split)
plot.word_cor

Plots a word_cor object
mraja1

Romeo and Juliet: Act 1 Dialogue Merged with Demographics
pronoun_type

Count Object/Subject Pronouns Per Grouping Variable
plot.discourse_map

Plots a discourse_map Object
plot.end_mark_by_preprocessed

Plots a end_mark_by_preprocessed Object
replacer

Replace Cells in a Matrix or Data Frame
print.cumulative_animated_lexical_classification

Prints a cumulative_animated_lexical_classification Object
print.object_pronoun_type

Prints a object_pronoun_type object
print.pos_preprocessed

Prints a pos_preprocessed object
plot.pos

Plots a pos Object
rajPOS

Romeo and Juliet Split in Parts of Speech
print.pos

Prints a pos Object.
print.ngrams

Prints an ngrams object
polarity

Polarity Score (Sentiment Analysis)
print.question_type_preprocessed

Prints a question_type_preprocessed object
plot.polarity

Plots a polarity Object
print.cumulative_syllable_freq

Prints a cumulative_syllable_freqObject
print.qdapProj

Prints a qdapProj Object
plot.polarity_score

Plots a polarity_score Object
plot.freq_terms

Plots a freq_terms Object
print.cm_distance

Prints a cm_distance Object
proportions.subject_pronoun_type

Question Counts
plot.table_score

Plots a table_score Object
proportions.pos_by

Parts of Speech
preprocessed.formality

Formality
print.all_words

Prints an all_words Object
cm_dummy2long

Convert cm_combine.dummy Back to Long
gantt_wrap

Gantt Plot
print.check_spelling

Prints a check_spelling Object
raj.act.5

Romeo and Juliet: Act 5
print.inspect_text

Prints an inspect_text Object
print.animated_discourse_map

Prints an animated_discourse_map Object
print.linsear_write_count

Prints a linsear_write_count Object
print.linsear_write_scores

Prints a linsear_write_scores Object
print.flesch_kincaid

Prints an flesch_kincaid Object
word_network_plot

Word Network Plot
scores.word_position

Word Position
print.wfm

Prints a wfm Object
preprocessed.word_position

Word Position
scores.formality

Formality
replace_number

Replace Numbers With Text Representation
plot.animated_character

Plots an animated_character Object
t.TermDocumentMatrix

Transposes a TermDocumentMatrix object
print.question_type

Prints a question_type object
proportions.pronoun_type

Question Counts
print.wfm_summary

Prints a wfm_summary Object
print.table_score

Prints a table_score object
proportions.termco

Term Counts
object_pronoun_type

Count Object Pronouns Per Grouping Variable
print.word_length

Prints a word_length object
plot.end_mark_by_score

Plots a end_mark_by_score Object
qprep

Quick Preparation of Text
counts.word_stats

Word Stats
formality

Formality Score
scores.flesch_kincaid

Readability Measures
print.word_position

Prints a word_position object.
print.word_proximity

Prints a word_proximity object
qcv

Quick Character Vector
plot.automated_readability_index

Plots a automated_readability_index Object
raj.act.2

Romeo and Juliet: Act 2
exclude

Exclude Elements From a Vector
termco

Search For and Count Terms
print.word_list

Prints a word_list Object
word_cor

Find Correlated Words
scores.coleman_liau

Readability Measures
proportions.end_mark_by

Question Counts
word_count

Word Counts
preprocessed.subject_pronoun_type

Question Counts
proportions.word_position

Word Position
plot.combo_syllable_sum

Plots a combo_syllable_sum Object
synonyms

Search For Synonyms
proportions.word_length

Word Length Counts
plot.diversity

Plots a diversity object
print.formality_scores

Prints a formality_scores object
print.boolean_qdap

Prints a boolean_qdap object
print.pos_by

Prints a pos_by Object.
print.cumulative_animated_polarity

Prints a cumulative_animated_polarity Object
print.type_token_ratio

Prints a type_token_ratio Object
word_stats

Descriptive Word Statistics
print.combo_syllable_sum

Prints an combo_syllable_sum object
print.phrase_net

Prints a phrase_net Object
sample.time.span

Minimal Time Span Data Set
proportions

Generic Proportions Method
replace_ordinal

Replace Mixed Ordinal Numbers With Text Representation
qdap

qdap: Quantitative Discourse Analysis Package
print.subject_pronoun_type

Prints a subject_pronoun_type object
plot.end_mark_by_proportion

Plots a end_mark_by_proportion Object
plot.linsear_write

Plots a linsear_write Object
rank_freq_mplot

Rank Frequency Plot
qtheme

Add themes to a Network object.
raj

Romeo and Juliet (Unchanged & Complete)
pres_debate_raw2012

First 2012 U.S. Presidential Debate
scores.lexical_classification

Lexical Classification
scores.fry

Readability Measures
scores.automated_readability_index

Readability Measures
syllable_sum

Syllabication
scores.linsear_write

Readability Measures
preprocessed.question_type

Question Counts
speakerSplit

Break and Stretch if Multiple Persons per Cell
summary.cmspans

Summarize a cmspans object
scores.SMOG

Readability Measures
mcsv_r

Read/Write Multiple csv Files at a Time
raw.time.span

Minimal Raw Time Span Data Set
subject_pronoun_type

Count Subject Pronouns Per Grouping Variable
print.readability_score

Prints a readability_score Object
print.lexical_classification_by

Prints a lexical_classification Object
scores.word_stats

Word Stats
print.word_cor

Prints a word_cor object
word_proximity

Proximity Matrix Between Words
word_diff_list

Differences In Word Use Between Groups
weight

Weight a qdap Object
strip

Strip Text
strWrap

Wrap Character Strings to Format Paragraphs
replace_contraction

Replace Contractions
stemmer

Stem Text
scores.pronoun_type

Question Counts
plot.object_pronoun_type

Plots an object_pronoun_type Object
plot.gantt

Plots a gantt object
counts.end_mark_by

Question Counts
visual.discourse_map

Discourse Map
read.transcript

Read Transcripts Into R
plot.pos_preprocessed

Plots a pos_preprocessed Object
scores.question_type

Question Counts
word_length

Count of Word Lengths Type
plot.cumulative_syllable_freq

Plots a cumulative_syllable_freq Object
plot.cumulative_polarity

Plots a cumulative_polarity Object
scrubber

Clean Imported Text
random_sent

Generate Random Dialogue Data
trans_venn

Venn Diagram by Grouping Variable
plot.wfm

Plots a wfm object
plot.wfdf

Plots a wfdf object
summary.wfm

Summarize a wfm object
trans_cloud

Word Clouds by Grouping Variable
unique_by

Find Unique Words by Grouping Variable
tot_plot

Visualize Word Length by Turn of Talk
proportions.formality

Formality
type_token_ratio

Type-Token Ratio
qdap_df

Create qdap Specific Data Structure
qcombine

Combine Columns
word_list

Raw Word Lists/Frequency Counts
plot.flesch_kincaid

Plots a flesch_kincaid Object
rm_row

Remove Rows That Contain Markers
plot.kullback_leibler

Plots a kullback_leibler object
counts.word_position

Word Position
diversity

Diversity Statistics
plot.word_stats

Plots a word_stats object
print.polarity

Prints an polarity Object
print.animated_formality

Prints a animated_formality Object
hamlet

Hamlet (Complete & Split by Sentence)
proportions.question_type

Question Counts
print.table_proportion

Prints a table_proportion object
gradient_cloud

Gradient Word Cloud
plot.rmgantt

Plots a rmgantt object
plot.question_type_preprocessed

Plots a question_type_preprocessed Object
preprocessed.check_spelling_interactive

Check Spelling
scores.word_length

Word Length Counts
scores.subject_pronoun_type

Question Counts
print.cumulative_lexical_classification

Prints a cumulative_lexical_classification Object
scores.pos_by

Parts of Speech
replace_symbol

Replace Symbols With Word Equivalents
scores.termco

Term Counts
t.DocumentTermMatrix

Transposes a DocumentTermMatrix object
outlier_detect

Detect Outliers in Text
scores.object_pronoun_type

Question Counts
space_fill

Replace Spaces
plot.animated_formality

Plots a animated_formality Object
sentSplit

Sentence Splitting
plot.character_table

Plots a character_table Object
scores.character_table

Term Counts
trans_context

Print Context Around Indices
plot.linsear_write_count

Plots a linsear_write_count Object
plot.pos_by

Plots a pos_by Object
preprocessed

Generic Preprocessed Method
print.check_text

Prints a check_text Object
print.cumulative_combo_syllable_sum

Prints a cumulative_combo_syllable_sum Object
print.table_count

Prints a table_count object
raj.act.1POS

Romeo and Juliet: Act 1 Parts of Speech by Person
scores

Generic Scores Method
termco_c

Combine Columns from a termco Object
spaste

Add Leading/Trailing Spaces
Filter.all_words

Filter
cm_range2long

Transform Codes to Start-End Durations
counts.coleman_liau

Readability Measures
kullback_leibler

Kullback Leibler Statistic
pos

Parts of Speech Tagging
preprocessed.pos_by

Parts of Speech
print.lexical_classification_preprocessed

Prints a lexical_classification_preprocessed Object
print.fry

Prints an fry Object
prop

Convert Raw Numeric Matrix or Data Frame to Proportions
raj.demographics

Romeo and Juliet Demographics
question_type

Count of Question Type
word_associate

Find Associated Words
visual

Generic visual Method
print.readability_count

Prints a readability_count Object