tidy_count_data: Convert count data to a tidy data frame

Description Usage Arguments Examples

View source: R/tidy_count_data.r

Description

tidy_count_data returns a tidy data frame of count statistics created with tidystats' count_data.

Usage

1

Arguments

count_data

a data frame created with tidystats' count_data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(dplyr)

# Calculate counts
condition_n <- count_data(cox, condition)

# Create a tidy data frame of the count data
tidy_count_data(condition_n)

# With a grouping variable:
cox %>%
  group_by(sex) %>%
  count_data(condition) %>%
  tidy_count_data()

WillemSleegers/tidystats-v0.3 documentation built on Aug. 12, 2019, 5:31 p.m.