qdap

qdapicon
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 and visualization.

Installation

Note: Windows users may need to install RCurl before installing qdap. Use the following short script:

URL <- "http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.0/"
install.packages("RCurl", contriburl = URL)
install.packages("qdap")

Additionally, if there is a discrepency between the R and Java architectures you will have to download the appropriate version of Java compatable with the version of R you're using.

Download the development version of qdap here

Help topics

Project Template

A function to generate a project template of folders, scripts and documents.

Import/Export Data

Functions for importing data and exporting output.

Cleaning/Parsing

Function to clean and parse text data.

Viewing

Functions to aid data viewing.

Reshaping

Functions to reshape data.

  • adjacency_matrix adjmat
    Takes a Matrix and Generates an Adjacency Matrix
  • colSplit
    Separate a Column Pasted by paste2
  • colsplit2df
    Wrapper for colSplit that Returns Dataframe(s)
  • lcolsplit2df
    Wrapper for colSplit that Returns Dataframe(s)
  • gantt
    Generate Unit Spans
  • gantt_rep
    Generate Unit Spans for Repeated Measures
  • key_merge
    Merge Demographic Information with Person/Text Transcript
  • paste2
    Paste an Unspecified Number Of Text Columns
  • prop
    Convert Raw Numeric Matrix or Data Frame to Proportions
  • qcombine
    Combine Columns
  • sentSplit
    Sentence Splitting
  • sentCombine
    Sentence Splitting
  • TOT
    Sentence Splitting
  • speakerSplit
    Break and Stretch if Multiple Persons per Cell

Word Extraction/Comparison

Functions for working with dialogue at the word level.

Coding Tools

cm 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.

Counts/Descriptives

Functions for word counts and descriptive statistics.

Measures

Word measures and Scoring.

qdap Tools

Tools to assist in transcript/discourse analysis.

Identification

Identify sentence elements/types.

  • end_inc
    Test for Incomplete Sentences
  • end_mark
    Sentence End marks
  • imperative
    Intuitively Remark Sentences as Imperative
  • NAer
    Replace Missing Values (NA)

Visualization

Plotting functions.

Print Functions

Data

Data sets included in qdap and used in examples.

Dependencies

  • Depends: gdata, ggplot2, grid, reports, scales
  • Imports: gridExtra, chron, grDevices, RColorBrewer, igraph, tm, wordcloud, venneuler, openNLPmodels.en, Snowball, gplots, gridExtra, openNLP, plotrix, XML, RCurl, reshape2, parallel, tools
  • Suggests: plyr, koRpus
  • Extends: