dog_double_count: Double Count Two Times

Description Usage Arguments Value See Also Examples

View source: R/dog_double_count.R

Description

This function takes a date column and a categorical variable and returns a data frame with the number

Usage

1
dog_double_count(df, date_col, categorie_col)

Arguments

df

A data frame with at least two columns.

date_col

A date column.

categorie_col

A column with a categorie.

Value

A data frame with three columns:

See Also

cat_barplot_double_count for creating the input data frame.

Other Special barplot: cat_barplot_double_count

Examples

1
2
3
test <- nycflights13::flights %>%
dplyr::mutate(date = lubridate::as_date(paste(year, month, day, sep="-")))
head(dog_double_count(df = test, date_col = date, categorie_col = carrier))

davidbaniadam/rispacs documentation built on Nov. 4, 2019, 9:43 a.m.