-
Notifications
You must be signed in to change notification settings - Fork 5
/
README.Rmd
77 lines (56 loc) · 2.69 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# tidycomm <img src='man/figures/logo.png' align="right" height="138.5" />
<!-- badges: start -->
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental-1)
[![CRAN status](https://www.r-pkg.org/badges/version/tidycomm)](https://CRAN.R-project.org/package=tidycomm)
[![Codecov test coverage](https://codecov.io/gh/joon-e/tidycomm/branch/master/graph/badge.svg)](https://codecov.io/gh/joon-e/tidycomm?branch=master)
[![R-CMD-check](https://github.com/joon-e/tidycomm/workflows/R-CMD-check/badge.svg)](https://github.com/joon-e/tidycomm/actions)
<!-- badges: end -->
Tidycomm provides convenience functions for common tasks in communication research. All functions follow the style and syntax of the [tidyverse](https://www.tidyverse.org/).
Currently, tidycomm includes functions for various methods of univariate and bivariate data description and analysis, data modification, and intercoder reliability tests.
## Installation
Install tidycomm from CRAN:
```{r eval = FALSE}
install.packages("tidycomm")
```
Or install the most recent development version of tidycomm with:
```{r eval = FALSE}
remotes::install_github("joon-e/tidycomm")
```
## Usage
```{r}
library(tidycomm)
```
tidycomm functions follow the style and syntax of the [tidyverse](https://www.tidyverse.org/) functions:
- they always assume a `tibble` as their first argument
- they will always return a `tibble` as well, so they can be easily integrated into pipes
- data variables (`tibble` columns) are passed to function calls directly as symbols
```{r}
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:
```{r}
WoJ %>%
describe()
```
Likewise, compute intercoder reliability tests for all variables by only specifying the post and coder ID variables:
```{r}
fbposts %>% # Facebook post codings sample data
test_icr(post_id, coder_id)
```
For detailed examples of all available functions, see the [documentation website](https://joon-e.github.io/tidycomm/) or read the vignettes:
```{r eval = FALSE}
browseVignettes("tidycomm")
```