knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

tidycomm

Lifecycle: experimental CRAN status Codecov test coverage R-CMD-check

Tidycomm provides convenience functions for common tasks in communication research. All functions follow the style and syntax of the tidyverse.

Currently, tidycomm includes functions for various methods of univariate and bivariate data description and analysis, data modification, visualization, and intercoder reliability tests.

Installation

Install tidycomm from CRAN:

install.packages("tidycomm")

Or install the most recent development version of tidycomm with:

remotes::install_github("joon-e/tidycomm")

Usage

library(tidycomm)

tidycomm functions follow the style and syntax of the tidyverse functions:

WoJ %>% # Worlds of Journalism sample data
  describe(autonomy_selection, autonomy_emphasis)

Most functions will automatically use all relevant variables in the data if no variables are specified in the function call. For example, to compute descriptive statistics for all numeric variables in the data, just call describe() without further arguments:

WoJ %>% 
  describe()

Likewise, compute intercoder reliability tests for all variables by only specifying the post and coder ID variables:

fbposts %>% # Facebook post codings sample data
  test_icr(post_id, coder_id)

Almost all functions also come with integrated visualizations. So to visualize your results you can easily just append visualize() to the end of your commands:

snscomments %>% # experimental social-media-post perception sample data
  dplyr::filter(group == 3) %>% 
  t_test(gender, 
         medium_evaluation, 
         article_evaluation, 
         comments_quality, 
         comments_valence) %>% 
  visualize()

For detailed examples, see the following articles:



joon-e/tidycomm documentation built on Feb. 24, 2024, 8:58 a.m.