Learn R Programming

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

qdap (version 2.1.1)

Bridging the gap between qualitative data and quantitative analysis

Description

This package 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,406

Version

2.1.1

License

GPL-2

Maintainer

Last Published

August 2nd, 2014

Functions in qdap (2.1.1)

Dissimilarity

Dissimilarity Statistics
NAer

Replace Missing Values (NA)
build_qdap_vignette

Replace Temporary Introduction to qdap Vignette
Animate.formality

Animate Formality
counts.subject_pronoun_type

Question Counts
bracketX

Bracket Parsing
bag_o_words

Bag of Words
plot.animated_discourse_map

Plots an animated_discourse_map Object
+.Network

Add themes to a Network object.
all_words

Searches Text Column for Words
DATA.SPLIT

Fictitious Split Sentence Classroom Dialogue
Animate.discourse_map

Discourse Map
Network.formality

Network Formality
colcomb2class

Combine Columns to Class
counts.object_pronoun_type

Question Counts
plot.cumulative_animated_polarity

Plots a cumulative_animated_polarity Object
env.syl

Syllable Lookup Environment
plot.animated_formality

Plots a animated_formality Object
Animate.gantt_plot

Gantt Plot
DATA

Fictitious Classroom Dialogue
cm_range2long

Transform Codes to Start-End Durations
counts.character_table

Term Counts
vertex_apply

Apply Parameter to List of Igraph Vertices/Edges
blank2NA

Replace Blanks in a dataframe
freq_terms

Find Frequent Terms
counts.automated_readability_index

Readability Measures
cm_df.temp

Break Transcript Dialogue into Blank Code Matrix
plot.sum_cmspans

Plot Summary Stats for a Summary of a cmspans Object
counts.pos_by

Parts of Speech
print.pos_by

Prints a pos_by Object.
DATA2

Fictitious Repeated Measures Classroom Dialogue
as.tdm

tm Package Compatibility Tools: Apply to or Convert to/from Term Document Matrix or Document Term Matrix
cm_df.fill

Range Coding
Search

Search Columns of a Data Frame
cumulative

Cumulative Scores
counts.coleman_liau

Readability Measures
end_inc

Test for Incomplete Sentences
plot.pronoun_type

Plots an pronoun_type Object
Trim

Remove Leading/Trailing White Space
colsplit2df

Wrapper for colSplit that Returns Dataframe(s)
qcv

Quick Character Vector
%&%

qdap Chaining
counts.flesch_kincaid

Readability Measures
Network.polarity

Network Polarity
Network

Generic Network Method
counts.formality

Formality
scores

Generic Scores Method
cm_distance

Distance Matrix Between Codes
check_spelling_interactive.factor

Check Spelling
counts.termco

Term Counts
common.list

list Method for common
check_spelling

Check Spelling
mraja1spl

Romeo and Juliet: Act 1 Dialogue Merged with Demographics and Split
kullback_leibler

Kullback Leibler Statistic
counts.word_stats

Word Stats
beg2char

Grab Begin/End of String to Character
check_spelling_interactive.character

Check Spelling
cm_range.temp

Range Code Sheet
counts.pos

Parts of Speech
counts.SMOG

Readability Measures
capitalizer

Capitalize Select Words
multigsub

Multiple gsub
Filter.all_words

Filter
plot.combo_syllable_sum

Plots a combo_syllable_sum Object
counts.end_mark_by

Question Counts
plot.animated_polarity

Plots a animated_polarity Object
cm_long2dummy

Stretch and Dummy Code cm_xxx2long
cm_time2long

Transform Codes to Start-End Times
plot.wfm

Plots a wfm object
colSplit

Separate a Column Pasted by paste2
counts

Generic Counts Method
counts.linsear_write

Readability Measures
dir_map

Map Transcript Files from a Directory to a Script
new_project

Project Template
pres_debate_raw2012

First 2012 U.S. Presidential Debate
incomplete_replace

Denote Incomplete End Marks With "|"
check_spelling_interactive.check_spelling

Check Spelling
discourse_map

Discourse Mapping
comma_spacer

Ensure Space After Comma
duplicates

Find Duplicated Words in a Text String
counts.polarity

Polarity
mcsv_r

Read/Write Multiple csv Files at a Time
df2tm_corpus

Deprecated qdap Functions
plot.end_mark_by

Plots a end_mark_by Object
gantt_plot

Gantt Plot
Title

Add Title to Select qdap Plots
gantt_wrap

Gantt Plot
print.formality

Prints a formality Object
automated_readability_index

Readability Measures
object_pronoun_type

Count Object Pronouns Per Grouping Variable
print.adjacency_matrix

Prints an adjacency_matrix Object
plot.end_mark_by_score

Plots a end_mark_by_score Object
print.cumulative_end_mark

Prints a cumulative_end_mark Object
print.all_words

Prints an all_words Object
cm_time.temp

Time Span Code Sheet
plot.sums_gantt

Plots a sums_gantt object
print.phrase_net

Prints a phrase_net Object
multiscale

Nested Standardization
gantt

Gantt Durations
plot.formality_scores

Plots a formality_scores Object
scores.polarity

Polarity
cm_2long

A Generic to Long Function
cm_code.combine

Combine Codes
imperative

Intuitively Remark Sentences as Imperative
synonyms

Search For Synonyms
proportions.end_mark_by

Question Counts
proportions.pronoun_type

Question Counts
print.cm_distance

Prints a cm_distance Object
phrase_net

Phrase Nets
summary.wfdf

Summarize a wfdf object
replacer

Replace Cells in a Matrix or Data Frame
plot.object_pronoun_type

Plots an object_pronoun_type Object
counts.question_type

Question Counts
Animate.gantt

Gantt Durations
dist_tab

SPSS Style Frequency Tables
plot.readability_count

Plots a readability_count Object
plot.gantt

Plots a gantt object
wfm

Word Frequency Matrix
cm_dummy2long

Convert cm_combine.dummy Back to Long
print.cumulative_formality

Prints a cumulative_formality Object
htruncdf

Dataframe Viewing
gantt_rep

Generate Unit Spans for Repeated Measures
plot.kullback_leibler

Plots a kullback_leibler object
key_merge

Merge Demographic Information with Person/Text Transcript
print.termco

Prints a termco object.
is.global

Test If Environment is Global
plot.linsear_write_scores

Plots a linsear_write_scores Object
plot.Network

Plots a Network Object
plot.freq_terms

Plots a freq_terms Object
dispersion_plot

Lexical Dispersion Plot
print.end_mark_by

Prints an end_mark_by object
print.cumulative_animated_polarity

Prints a cumulative_animated_polarity Object
raj.act.3

Romeo and Juliet: Act 3
print.Network

Prints a Network Object
condense

Condense Dataframe Columns
mraja1

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

Prints a qdapProj Object
name2sex

Names to Gender Prediction
plot.end_mark_by_count

Plots a end_mark_by_count Object
proportions.pos

Parts of Speech
plot.linsear_write

Plots a linsear_write Object
print.polysyllable_sum

Prints an polysyllable_sum object
plot.pos_preprocessed

Plots a pos_preprocessed Object
preprocessed

Generic Preprocessed Method
plot.termco

Plots a termco object
paste2

Paste an Unspecified Number Of Text Columns
print.table_proportion

Prints a table_proportion object
print.linsear_write_count

Prints a linsear_write_count Object
print.Dissimilarity

Prints a Dissimilarity object
diversity

Diversity Statistics
end_mark

Sentence End Marks
plot.cm_distance

Plots a cm_distance object
print.word_stats_counts

Prints a word_stats_counts object
print.word_cor

Prints a word_cor object
plot.cumulative_polarity

Plots a cumulative_polarity Object
print.pronoun_type

Prints a pronoun_type object
pres_debates2012

2012 U.S. Presidential Debates
outlier_labeler

Locate Outliers in Numeric String
prop

Convert Raw Numeric Matrix or Data Frame to Proportions
plot.polarity_score

Plots a polarity_score Object
print.cumulative_polarity

Prints a cumulative_polarity Object
plot.table_score

Plots a table_score Object
print.pos

Prints a pos Object.
gradient_cloud

Gradient Word Cloud
plot.cumulative_end_mark

Plots a cumulative_end_mark Object
plot.linsear_write_count

Plots a linsear_write_count Object
print.SMOG

Prints an SMOG Object
plot.subject_pronoun_type

Plots an subject_pronoun_type Object
print.word_proximity

Prints a word_proximity object
plot.sent_split

Plots a sent_split Object
plot.formality

Plots a formality Object
preprocessed.formality

Formality
scores.formality

Formality
rank_freq_mplot

Rank Frequency Plot
print.animated_polarity

Prints a animated_polarity Object
print.check_spelling

Prints a check_spelling Object
rm_url

Remove/Replace URLs
print.end_mark_by_preprocessed

Prints a end_mark_by_preprocessed object
plot.readability_score

Plots a readability_score Object
raj.act.4

Romeo and Juliet: Act 4
plot.end_mark_by_proportion

Plots a end_mark_by_proportion Object
print.cumulative_syllable_freq

Prints a cumulative_syllable_freqObject
outlier_detect

Detect Outliers in Text
sentSplit

Sentence Splitting
raj.act.2

Romeo and Juliet: Act 2
common

Find Common Words Between Groups
preprocessed.check_spelling_interactive

Check Spelling
visual.discourse_map

Discourse Map
ngrams

Generate ngrams
word_cor

Find Correlated Words
plot.question_type_preprocessed

Plots a question_type_preprocessed Object
preprocessed.subject_pronoun_type

Question Counts
trans_context

Print Context Around Indices
preprocessed.object_pronoun_type

Question Counts
rm_stopwords

Remove Stop Words
qprep

Quick Preparation of Text
preprocessed.pos_by

Parts of Speech
proportions.question_type

Question Counts
print.word_list

Prints a word_list Object
raj.act.1

Romeo and Juliet: Act 1
proportions.character_table

Term Counts
plot.word_cor

Plots a word_cor object
plot.end_mark

Plots an end_mark Object
rajSPLIT

Romeo and Juliet (Complete & Split)
print.discourse_map

Prints a discourse_map Object
plot.end_mark_by_preprocessed

Plots a end_mark_by_preprocessed Object
plot.cumulative_animated_formality

Plots a cumulative_animated_formality Object
plot.cumulative_combo_syllable_sum

Plots a cumulative_combo_syllable_sum Object
qheat

Quick Heatmap
raj

Romeo and Juliet (Unchanged & Complete)
plot.wfdf

Plots a wfdf object
preprocessed.pos

Parts of Speech
rajPOS

Romeo and Juliet Split in Parts of Speech
polarity

Polarity Score (Sentiment Analysis)
print.object_pronoun_type

Prints a object_pronoun_type object
print.qdap_context

Prints a qdap_context object
proportions.termco

Term Counts
plot.pos

Plots a pos Object
word_diff_list

Differences In Word Use Between Groups
scores.pos_by

Parts of Speech
print.question_type

Prints a question_type object
weight

Weight a qdap Object
proportions

Generic Proportions Method
plot.SMOG

Plots a SMOG Object
read.transcript

Read Transcripts Into R
print.ngrams

Prints an ngrams object
print.table_score

Prints a table_score object
print.readability_score

Prints a readability_score Object
print.colsplit2df

Prints a colsplit2df Object.
plot.discourse_map

Plots a discourse_map Object
print.table_count

Prints a table_count object
replace_abbreviation

Replace Abbreviations
random_sent

Generate Random Dialogue Data
space_fill

Replace Spaces
qtheme

Add themes to a Network object.
qdap

qdap: Quantitative Discourse Analysis Package
t.DocumentTermMatrix

Transposes a DocumentTermMatrix object
word_count

Word Counts
plot.cumulative_formality

Plots a cumulative_formality Object
sentiment_frame

Power Score (Sentiment Analysis)
termco_c

Combine Columns from a termco Object
plot.automated_readability_index

Plots a automated_readability_index Object
unique_by

Find Unique Words by Grouping Variable
raj.demographics

Romeo and Juliet Demographics
plot.table_proportion

Plots a table_proportion Object
pronoun_type

Count Object/Subject Pronouns Per Grouping Variable
plot.polarity

Plots a polarity Object
plot.cmspans

Plots a cmspans object
plot.word_stats_counts

Plots a word_stats_counts Object
replace_contraction

Replace Contractions
replace_ordinal

Replace Mixed Ordinal Numbers With Text Representation
scores.question_type

Question Counts
plot.question_type

Plots a question_type Object
preprocessed.end_mark_by

Question Counts
print.check_spelling_interactive

Prints a check_spelling_interactive Object
print.check_text

Prints a check_text Object
potential_NA

Search for Potential Missing Values
scores.character_table

Term Counts
strip

Strip Text
proportions.formality

Formality
print.sums_gantt

Prints a sums_gantt object
plot.word_proximity

Plots a word_proximity object
print.polarity

Prints an polarity Object
print.readability_count

Prints a readability_count Object
scores.SMOG

Readability Measures
print.combo_syllable_sum

Prints an combo_syllable_sum object
sample.time.span

Minimal Time Span Data Set
print.linsear_write

Prints an linsear_write Object
print.animated_discourse_map

Prints an animated_discourse_map Object
print.boolean_qdap

Prints a boolean_qdap object
scores.end_mark_by

Question Counts
print.trunc

Prints a trunc object
scores.object_pronoun_type

Question Counts
summary.cmspans

Summarize a cmspans object
trans_venn

Venn Diagram by Grouping Variable
print.polarity_score

Prints a polarity_score Object
plot.polarity_count

Plots a polarity_count Object
print.sum_cmspans

Prints a sum_cmspans object
print.fry

Prints an fry Object
plot.cumulative_syllable_freq

Plots a cumulative_syllable_freq Object
print.word_stats

Prints a word_stats object
print.word_associate

Prints a word_associate object
spaste

Add Leading/Trailing Spaces
print.which_misspelled

Prints a which_misspelled Object
raj.act.5

Romeo and Juliet: Act 5
word_associate

Find Associated Words
plot.table_count

Plots a table_count Object
plot.syllable_freq

Plots a syllable_freq Object
tot_plot

Visualize Word Length by Turn of Talk
proportions.object_pronoun_type

Question Counts
plot.word_stats

Plots a word_stats object
scores.automated_readability_index

Readability Measures
syllable_sum

Syllabication
scores.pronoun_type

Question Counts
scores.flesch_kincaid

Readability Measures
print.diversity

Prints a diversity object
print.linsear_write_scores

Prints a linsear_write_scores Object
print.syllable_sum

Prints an syllable_sum object
print.pos_preprocessed

Prints a pos_preprocessed object
visual

Generic visual Method
pos

Parts of Speech Tagging
scrubber

Clean Imported Text
print.wfm_summary

Prints a wfm_summary Object
word_network_plot

Word Network Plot
termco

Search For and Count Terms
subject_pronoun_type

Count Subject Pronouns Per Grouping Variable
print.automated_readability_index

Prints an automated_readability_index Object
print.sub_holder

Prints a sub_holder object
qcombine

Combine Columns
print.cumulative_animated_formality

Prints a cumulative_animated_formality Object
question_type

Count of Question Type
raw.time.span

Minimal Raw Time Span Data Set
strWrap

Wrap Character Strings to Format Paragraphs
print.end_mark

Prints an end_mark object
plot.weighted_wfm

Plots a weighted_wfm object
print.coleman_liau

Prints an coleman_liau Object
trans_cloud

Word Clouds by Grouping Variable
print.kullback_leibler

Prints a kullback_leibler Object.
proportions.subject_pronoun_type

Question Counts
word_stats

Descriptive Word Statistics
replace_number

Replace Numbers With Text Representation
scores.coleman_liau

Readability Measures
scores.termco

Term Counts
speakerSplit

Break and Stretch if Multiple Persons per Cell
scores.fry

Readability Measures
scores.word_stats

Word Stats
scores.subject_pronoun_type

Question Counts
Animate.polarity

Animate Polarity
summary.wfm

Summarize a wfm object
check_text

Check Text For Potential Problems
clean

Remove Escaped Characters
cm_code.overlap

Find Co-occurrence Between Codes
cm_df.transcript

Transcript With Word Number
counts.pronoun_type

Question Counts
formality

Formality Score
left_just

Text Justification
plot.coleman_liau

Plots a coleman_liau Object
plot.diversity

Plots a diversity object
exclude

Exclude Elements From a Vector
plot.rmgantt

Plots a rmgantt object
print.formality_scores

Prints a formality_scores object
raj.act.1POS

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

Remove Rows That Contain Markers
replace_symbol

Replace Symbols With Word Equivalents
stemmer

Stem Text
adjacency_matrix

Takes a Matrix and Generates an Adjacency Matrix
cm_code.blank

Blank Code Transformation
cm_combine.dummy

Find Co-occurrence Between Dummy Codes
cm_df2long

Transform Codes to Start-End Durations
cm_code.exclude

Exclude Codes
counts.fry

Readability Measures
hamlet

Hamlet (Complete & Split by Sentence)
plot.flesch_kincaid

Plots a flesch_kincaid Object
plot.pos_by

Plots a pos_by Object
preprocessed.pronoun_type

Question Counts
print.cumulative_combo_syllable_sum

Prints a cumulative_combo_syllable_sum Object
print.wfm

Prints a wfm Object
proportions.pos_by

Parts of Speech
qdap_df

Create qdap Specific Data Structure
scores.linsear_write

Readability Measures
word_list

Raw Word Lists/Frequency Counts
Animate

Generic Animate Method
cm_code.transform

Transform Codes
preprocessed.question_type

Question Counts
plot.character_table

Plots a character_table Object
print.animated_formality

Prints a animated_formality Object
print.character_table

Prints a character_table object
print.flesch_kincaid

Prints an flesch_kincaid Object
print.polarity_count

Prints a polarity_count Object
print.subject_pronoun_type

Prints a subject_pronoun_type object
print.question_type_preprocessed

Prints a question_type_preprocessed object
print.sent_split

Prints a sent_split object
t.TermDocumentMatrix

Transposes a TermDocumentMatrix object
word_proximity

Proximity Matrix Between Words