![]()
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.
If there is a discrepancy between the R and Java architectures you will have to download the appropriate version of Java compatible with the version of R you're using. For more see Tal Galili's blog post regarding rJava issues.
Download the development version of qdap here
A function to generate a project template of folders, scripts and documents.
new_projectFunctions for importing data and exporting output.
condensedir_mapmcsv_r mcsv_wread.transcriptFunction to clean and parse text data.
bracketXbracketXtractgenXgenXtractbeg2charchar2endcapitalizercheck_spelling which_misspelled check_spelling_interactivecorrectcheck_textcleancomma_spacerincomplete_replaceincompmultigsub mgsubsub_holdername2sexpotential_NAqprepreplace_abbreviationreplace_contractionreplace_numberreplace_ordinalreplace_symbolrm_rowrm_empty_rowrm_stopwords rm_stop %sw%scrubberspace_fillspastestemmer stem_words stem2dfTrimFunctions to aid data viewing.
htruncdfltruncdflviewqviewtruncdfleft_just right_justSearch boolean_search %bs%strWrapFunctions chain together qdap data and functions.
Functions to aid in selection of data elements.
countspreprocessedproportionsscoresvisualFunctions to reshape data.
adjacency_matrix adjmatcolSplitcolsplit2df lcolsplit2dfcolcomb2classganttplot_gantt_basegantt_repkey_mergepaste2 colpaste2dfpropqcombinesentSplit sent_detectTOTsentCombinespeakerSplittrans_contextFunctions for working with dialogue at the word level.
all_wordsbag_o_words unbag breaker word_splitchunkercommonexclude exclude.DocumentTermMatrix %ex% exclude.TermDocumentMatrix exclude.default exclude.list exclude.wfmfreq_termsngramsstripsynonyms syn synonyms_frame syn_frameword_associateword_diff_listword_listcm functions are code matrix functions. These functions are used for coding and reshaping transcripts, dataframes, and time spans for further use in analysis and visualization.
summary.cmspanscm_range.tempcm_df.transcriptcm_time.tempcm_df.tempcm_2longcm_df2longcm_range2longcm_time2longcm_code.blankcm_code.combinecm_code.excludecm_code.overlapcm_code.transformcm_distancecm_dummy2longcm_long2dummyFunctions for working between the tm and qdap packages.
as.tdmapply_as_dfapply_as_tmas.Corpusas.Corpus.DocumentTermMatrixas.Corpus.TermDocumentMatrixas.Corpus.defaultas.Corpus.sent_splitas.Corpus.wfmas.DocumentTermMatrixas.TermDocumentMatrixas.data.frame.Corpusas.dtmas.dtm.Corpusas.dtm.characteras.dtm.defaultas.dtm.wfmas.tdm.Corpusas.tdm.characteras.tdm.defaultas.tdm.wfmFunctions for word counts and descriptive statistics.
dist_tabmultiscaleobject_pronoun_typeoutlier_detectoutlier_labelerpospos_bypos_tagspronoun_typequestion_typesubject_pronoun_typesyllable_sumcombo_syllable_sumpolysyllable_sumsyllable_counttermco termco_dterm_matchtermco2mattermco_cwfm wfdf as.wfm weight.wfdf weight.wfm wfm_combine wfm_expanded wfm.wfdf wfm.character wfm.factor as.wfm.Corpus as.wfm.DocumentTermMatrix as.wfm.TermDocumentMatrix as.wfm.data.frame as.wfm.default as.wfm.matrix as.wfm.wfdf wfm.Corpusword_count wccharacter_countcharacter_table char_tableword_statsWord measures and scoring.
automated_readability_index coleman_liau flesch_kincaid fry linsear_write SMOGDissimilaritydiversityformalitykullback_leiblerpolarityword_corword_proximity weight.word_proximityTools to assist in transcript/discourse analysis.
blank2NAbuild_qdap_vignetteduplicatesqcvreplacerIdentify sentence elements/types.
end_incend_mark end_mark_byimperativeNAerPlotting functions.
dispersion_plotgradient_cloudgantt_plotgantt_wrapphrase_netplot.character_tableplot.cmspansplot.diversityplot.formalityplot.ganttplot.kullback_leiblerplot.polarityplot.pos_byplot.question_typeplot.rmganttplot.sent_splitplot.sum_cmspansplot.sums_ganttplot.termcoplot.wfdfplot.wfmplot.word_statsqheatqheat.character_tableqheat.defaultqheat.diversityqheat.pos_byqheat.question_typeqheat.termcoqheat.word_statsrank_freq_mplotrank_freq_plottot_plottrans_cloudtrans_vennword_network_plotNetwork Plots for qdap Objects.
discourse_mapNetworkNetwork.formalityNetwork.polarityqthemetheme_badkitchentheme_cafetheme_duskheattheme_grayscaletheme_greyscaletheme_hipstertheme_nightheattheme_norahNetwork Plots for qdap Objects.
cumulativecumulative.animated_formalitycumulative.animated_polaritycumulative.combo_syllable_sumcumulative.end_markcumulative.formalitycumulative.polaritycumulative.poscumulative.pos_bycumulative.syllable_freqAnimate qdap Objects.
AnimateAnimate.discourse_mapAnimate.formalityAnimate.ganttAnimate.gantt_plotAnimate.polarityvertex_apply edge_applyprint.all_wordsprint.adjacency_matrixprint.boolean_qdapprint.character_tableprint.cm_distanceprint.colsplit2dfprint.Dissimilarityprint.diversityprint.formalityprint.kullback_leiblerprint.ngramsprint.polarityprint.posprint.pos_byprint.qdap_contextprint.question_typeprint.sent_splitprint.sum_cmspansprint.sums_ganttprint.termcoprint.wfmprint.word_associateprint.word_listprint.word_statsData sets included in qdap and used in examples.
DATADATA2DATA.SPLITpres_debates2012pres_debate_raw2012mraja1mraja1splraj.act.1raj.act.2raj.act.3raj.act.4raj.act.5raj.demographicsrajrajPOSrajSPLITraw.time.spansample.time.span