Learn R Programming

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

qdap (version 2.0.0)

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,223

Version

2.0.0

License

GPL-2

Maintainer

Tyler Rinker

Last Published

May 31st, 2014

Functions in qdap (2.0.0)

DATA

Fictitious Classroom Dialogue
counts.SMOG

Readability Measures
cm_long2dummy

Stretch and Dummy Code cm_xxx2long
capitalizer

Capitalize Select Words
cm_combine.dummy

Find Co-occurrence Between Dummy Codes
Animate.gantt

Gantt Durations
freq_terms

Find Frequent Terms
DATA2

Fictitious Repeated Measures Classroom Dialogue
Animate.polarity

Animate Polarity
hamlet

Hamlet (Complete & Split by Sentence)
end_inc

Test for Incomplete Sentences
plot.end_mark_by_preprocessed

Plots a end_mark_by_preprocessed Object
imperative

Intuitively Remark Sentences as Imperative
Dissimilarity

Dissimilarity Statistics
Trim

Remove Leading/Trailing White Space
Filter.all_words

Filter
cm_range2long

Transform Codes to Start-End Durations
is.global

Test If Environment is Global
print.end_mark_by

Prints a end_mark_by object
cm_df.fill

Range Coding
htruncdf

Dataframe Viewing
print.question_type

Prints a question_type object
print.diversity

Prints a diversity object
plot.end_mark_by_score

Plots a end_mark_by_score Object
all_words

Searches Text Column for Words
plot.question_type

Plots a question_type Object
Animate

Generic Animate Method
plot.linsear_write_count

Plots a linsear_write_count Object
print.sum_cmspans

Prints a sum_cmspans object
print.animated_discourse_map

Prints a animated_discourse_map Object
counts.automated_readability_index

Readability Measures
plot.animated_discourse_map

Plots a animated_discourse_map Object
cm_code.exclude

Exclude Codes
gantt_rep

Generate Unit Spans for Repeated Measures
print.table_count

Prints a table_count object
colsplit2df

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

Prints a pos Object.
colcomb2class

Combine Columns to Class
cm_dummy2long

Convert cm_combine.dummy Back to Long
Animate.formality

Animate Formality
print.qdapProj

Prints a qdapProj Object
vertex_apply

Apply Parameter to List of Igraph Vertices/Edges
NAer

Replace Missing Values (NA)
print.readability_count

Prints a readability_count Object
automated_readability_index

Readability Measures
duplicates

Find Duplicated Words in a Text String
counts

Generic Counts Method
counts.coleman_liau

Readability Measures
preprocessed.question_type

Question Counts
plot.formality

Plots a formality Object
plot.end_mark_by_proportion

Plots a end_mark_by_proportion Object
bag_o_words

Bag of Words
counts.pos

Parts of Speech
cm_df.transcript

Transcript With Word Number
Network.polarity

Network Polarity
Network

Generic Network Method
plot.polarity

Plots a polarity Object
print.SMOG

Prints an SMOG Object
clean

Remove Escaped Characters
beg2char

Grab Begin/End of String to Character
DATA.SPLIT

Fictitious Split Sentence Classroom Dialogue
gantt_wrap

Gantt Plot
counts.formality

Formality
cm_range.temp

Range Code Sheet
cm_code.combine

Combine Codes
print.word_stats

Prints a word_stats object
counts.fry

Readability Measures
plot.gantt

Plots a gantt object
cm_2long

A Generic to Long Function
word_stats

Descriptive Word Statistics
mraja1

Romeo and Juliet: Act 1 Dialogue Merged with Demographics
potential_NA

Search for Potential Missing Values
adjacency_matrix

Takes a Matrix and Generates an Adjacency Matrix
Search

Search Columns of a Data Frame
print.animated_polarity

Prints a animated_polarity Object
counts.pos_by

Parts of Speech
colSplit

Separate a Column Pasted by paste2
question_type

Count of Question Type
cm_distance

Distance Matrix Between Codes
scores.question_type

Question Counts
dispersion_plot

Lexical Dispersion Plot
cm_time2long

Transform Codes to Start-End Times
diversity

Diversity Statistics
Network.formality

Network Formality
counts.linsear_write

Readability Measures
Animate.discourse_map

Discourse Map
raj.act.3

Romeo and Juliet: Act 3
plot.readability_score

Plots a readability_score Object
print.all_words

Prints an all_words Object
pres_debate_raw2012

First 2012 U.S. Presidential Debate
end_mark

Sentence End Marks
plot.polarity_score

Plots a polarity_score Object
plot.pos_preprocessed

Plots a pos_preprocessed Object
raj.act.4

Romeo and Juliet: Act 4
print.boolean_qdap

Prints a boolean_qdap object
multigsub

Multiple gsub
plot.table_proportion

Plots a table_proportion Object
Title

Add Title to Select qdap Plots
cm_df2long

Transform Codes to Start-End Durations
space_fill

Replace Spaces
counts.termco

Term Counts
phrase_net

Phrase Nets
print.sub_holder

Prints a sub_holder object
raj.act.2

Romeo and Juliet: Act 2
cm_code.transform

Transform Codes
pres_debates2012

2012 U.S. Presidential Debates
plot.sum_cmspans

Plot Summary Stats for a Summary of a cmspans Object
cm_time.temp

Time Span Code Sheet
left_just

Text Justification
print.sums_gantt

Prints a sums_gantt object
print.animated_formality

Prints a animated_formality Object
print.word_stats_counts

Prints a word_stats_counts object
cm_df.temp

Break Transcript Dialogue into Blank Code Matrix
dist_tab

SPSS Style Frequency Tables
counts.flesch_kincaid

Readability Measures
print.formality

Prints a formality Object
print.end_mark_by_preprocessed

Prints a end_mark_by_preprocessed object
print.readability_score

Prints a readability_score Object
print.table_score

Prints a table_score object
rm_row

Remove Rows That Contain Markers
raj.act.1POS

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

Find Common Words Between Groups
cm_code.blank

Blank Code Transformation
outlier_detect

Detect Outliers in Text
print.cm_distance

Prints a cm_distance Object
termco

Search For and Count Terms
raj.demographics

Romeo and Juliet Demographics
print.discourse_map

Prints a discourse_map Object
condense

Condense Dataframe Columns
mcsv_r

Read/Write Multiple csv Files at a Time
scores.termco

Term Counts
plot.coleman_liau

Plots a coleman_liau Object
plot.wfdf

Plots a wfdf object
gradient_cloud

Gradient Word Cloud
common.list

list Method for common
plot.readability_count

Plots a readability_count Object
print.Network

Prints a Network Object
paste2

Paste an Unspecified Number Of Text Columns
print.sent_split

Prints a sent_split object
plot.SMOG

Plots a SMOG Object
plot.weighted_wfm

Plots a weighted_wfm object
proportions.question_type

Question Counts
plot.end_mark_by_count

Plots a end_mark_by_count Object
qheat

Quick Heatmap
plot.wfm

Plots a wfm object
print.linsear_write

Prints an linsear_write Object
counts.character_table

Term Counts
print.formality_scores

Prints a formality_scores object
plot.linsear_write

Plots a linsear_write Object
print.polarity_count

Prints a polarity_count Object
multiscale

Nested Standardization
incomplete_replace

Denote Incomplete End Marks With "|"
print.polarity

Prints an polarity Object
strWrap

Wrap Character Strings to Format Paragraphs
plot.pos

Plots a pos Object
print.adjacency_matrix

Prints an adjacency_matrix Object
preprocessed.pos

Parts of Speech
preprocessed

Generic Preprocessed Method
plot.freq_terms

Plots a freq_terms Object
discourse_map

Discourse Mapping
print.wfm

Prints a wfm Object
replace_contraction

Replace Contractions
read.transcript

Read Transcripts Into R
replace_number

Replace Numbers With Text Representation
ngrams

Generate ngrams
print.phrase_net

Prints a phrase_net Object
plot.table_count

Plots a table_count Object
trans_venn

Venn Diagram by Grouping Variable
summary.wfdf

Summarize a wfdf object
rm_url

Remove/Replace URLs
qcv

Quick Character Vector
scores.flesch_kincaid

Readability Measures
scores.automated_readability_index

Readability Measures
summary.wfm

Summarize a wfm object
stemmer

Stem Text
summary.cmspans

Summarize a cmspans object
word_diff_list

Differences In Word Use Between Groups
visual.discourse_map

Discourse Map
plot.discourse_map

Plots a discourse_map Object
plot.word_proximity

Plots a word_proximity object
polarity

Polarity Score (Sentiment Analysis)
plot.termco

Plots a termco object
sentiment_frame

Power Score (Sentiment Analysis)
counts.end_mark_by

Question Counts
print.pos_preprocessed

Prints a pos_preprocessed object
exclude

Exclude Elements From a Vector
print.colsplit2df

Prints a colsplit2df Object.
mraja1spl

Romeo and Juliet: Act 1 Dialogue Merged with Demographics and Split
plot.pos_by

Plots a pos_by Object
rm_stopwords

Remove Stop Words
tdm

tm Package Compatibility Tools: Apply to or Convert to/from Term Document Matrix or Document Term Matrix
plot.question_type_preprocessed

Plots a question_type_preprocessed Object
t.TermDocumentMatrix

Transposes a TermDocumentMatrix object
print.flesch_kincaid

Prints an flesch_kincaid Object
termco_c

Combine Columns from a termco Object
print.coleman_liau

Prints an coleman_liau Object
plot.word_stats

Plots a word_stats object
scores.coleman_liau

Readability Measures
qdap

qdap: Quantitative Discourse Analysis Package
kullback_leibler

Kullback Leibler Statistic
word_proximity

Proximity Matrix Between Words
scores

Generic Scores Method
print.qdap_context

Prints a qdap_context object
rajPOS

Romeo and Juliet Split in Parts of Speech
syllable_sum

Syllabication
raj.act.1

Romeo and Juliet: Act 1
print.pos_by

Prints a pos_by Object.
raj

Romeo and Juliet (Unchanged & Complete)
scores.formality

Formality
visual

Generic visual Method
word_cor

Find Correlated Words
rajSPLIT

Romeo and Juliet (Complete & Split)
preprocessed.pos_by

Parts of Speech
word_list

Raw Word Lists/Frequency Counts
print.automated_readability_index

Prints an automated_readability_index Object
raj.act.5

Romeo and Juliet: Act 5
word_count

Word Counts
rank_freq_mplot

Rank Frequency Plot
scores.pos_by

Parts of Speech
word_network_plot

Word Network Plot
print.word_associate

Prints a word_associate object
key_merge

Merge Demographic Information with Person/Text Transcript
print.word_list

Prints a word_list Object
scores.end_mark_by

Question Counts
print.polarity_score

Prints a polarity_score Object
plot.animated_polarity

Plots a animated_polarity Object
preprocessed.formality

Formality
print.trunc

Prints a trunc object
scores.linsear_write

Readability Measures
print.termco

Prints a termco object.
plot.formality_scores

Plots a formality_scores Object
scores.SMOG

Readability Measures
print.word_cor

Prints a word_cor object
qprep

Quick Preparation of Text
sentSplit

Sentence Splitting
print.wfm_summary

Prints a wfm_summary Object
print.question_type_preprocessed

Prints a question_type_preprocessed object
proportions.character_table

Term Counts
word_associate

Find Associated Words
proportions.pos

Parts of Speech
+.Network

Add themes to a Network object.
strip

Strip Text
wfm

Word Frequency Matrix
scrubber

Clean Imported Text
replace_abbreviation

Replace Abbreviations
scores.polarity

Polarity
proportions.end_mark_by

Question Counts
trans_cloud

Word Clouds by Grouping Variable
replace_symbol

Replace Symbols With Word Equivalents
cm_code.overlap

Find Co-occurrence Between Codes
scores.character_table

Term Counts
scores.fry

Readability Measures
counts.word_stats

Word Stats
gantt_plot

Gantt Plot
synonyms

Search For Synonyms
env.syl

Syllable Lookup Environment
formality

Formality Score
outlier_labeler

Locate Outliers in Numeric String
name2sex

Names to Gender Prediction
plot.kullback_leibler

Plots a kullback_leibler object
plot.rmgantt

Plots a rmgantt object
print.Dissimilarity

Prints a Dissimilarity object
new_project

Project Template
print.character_table

Prints a character_table object
plot.Network

Plots a Network Object
plot.animated_formality

Plots a animated_formality Object
print.linsear_write_count

Prints a linsear_write_count Object
plot.character_table

Plots a character_table Object
print.word_proximity

Prints a word_proximity object
plot.cm_distance

Plots a cm_distance object
plot.linsear_write_scores

Plots a linsear_write_scores Object
plot.word_cor

Plots a word_cor object
print.table_proportion

Prints a table_proportion object
proportions.pos_by

Parts of Speech
qcombine

Combine Columns
raw.time.span

Minimal Raw Time Span Data Set
scores.word_stats

Word Stats
spaste

Add Leading/Trailing Spaces
trans_context

Print Context Around Indices
Animate.gantt_plot

Gantt Plot
dir_map

Map Transcript Files from a Directory to a Script
plot.automated_readability_index

Plots a automated_readability_index Object
plot.diversity

Plots a diversity object
plot.end_mark_by

Plots a end_mark_by Object
plot.polarity_count

Plots a polarity_count Object
plot.sent_split

Plots a sent_split Object
print.fry

Prints an fry Object
print.ngrams

Prints an ngrams object
print.linsear_write_scores

Prints a linsear_write_scores Object
proportions.termco

Term Counts
proportions.formality

Formality
t.DocumentTermMatrix

Transposes a DocumentTermMatrix object
tot_plot

Visualize Word Length by Turn of Talk
bracketX

Bracket Parsing
blank2NA

Replace Blanks in a dataframe
counts.polarity

Polarity
counts.question_type

Question Counts
gantt

Gantt Durations
plot.cmspans

Plots a cmspans object
plot.flesch_kincaid

Plots a flesch_kincaid Object
plot.sums_gantt

Plots a sums_gantt object
plot.table_score

Plots a table_score Object
plot.word_stats_counts

Plots a word_stats_counts Object
pos

Parts of Speech Tagging
preprocessed.end_mark_by

Question Counts
print.kullback_leibler

Prints a kullback_leibler Object.
prop

Convert Raw Numeric Matrix or Data Frame to Proportions
proportions

Generic Proportions Method
qtheme

Add themes to a Network object.
replacer

Replace Cells in a Matrix or Data Frame
sample.time.span

Minimal Time Span Data Set
speakerSplit

Break and Stretch if Multiple Persons per Cell