ggdag (version 0.1.0)

dplyr: Dplyr verb methods for tidy_dagitty objects

Description

Dplyr verb methods for tidy_dagitty objects.

Usage

# S3 method for tidy_dagitty
select(.data, ...)

# S3 method for tidy_dagitty filter(.data, ...)

# S3 method for tidy_dagitty mutate(.data, ...)

# S3 method for tidy_dagitty summarise(.data, ...)

# S3 method for tidy_dagitty arrange(.data, ...)

# S3 method for tidy_dagitty group_by(.data, ...)

# S3 method for tidy_dagitty ungroup(.data, ...)

# S3 method for tidy_dagitty transmute(.data, ...)

# S3 method for tidy_dagitty distinct(.data, ..., .keep_all = FALSE)

# S3 method for tidy_dagitty full_join(x, y, by = NULL, copy = FALSE, suffix = c(".x", ".y"), ...)

# S3 method for tidy_dagitty inner_join(x, y, by = NULL, copy = FALSE, suffix = c(".x", ".y"), ...)

# S3 method for tidy_dagitty left_join(x, y, by = NULL, copy = FALSE, suffix = c(".x", ".y"), ...)

# S3 method for tidy_dagitty right_join(x, y, by = NULL, copy = FALSE, suffix = c(".x", ".y"), ...)

# S3 method for tidy_dagitty anti_join(x, y, by = NULL, copy = FALSE, ...)

# S3 method for tidy_dagitty semi_join(x, y, by = NULL, copy = FALSE, ...)

# S3 method for tidy_dagitty slice(.data, ..., .dots = list())

# S3 method for tidy_dagitty select_(.data, ..., .dots = list())

# S3 method for tidy_dagitty filter_(.data, ..., .dots = list())

# S3 method for tidy_dagitty mutate_(.data, ..., .dots = list())

# S3 method for tidy_dagitty summarise_(.data, ..., .dots = list())

# S3 method for tidy_dagitty arrange_(.data, ..., .dots = list())

# S3 method for tidy_dagitty slice_(.data, ..., .dots = list())

Arguments

.data

data object of class tidy_dagitty

...

other arguments passed to the dplyr function

.dots, x, y, by, copy, suffix, .keep_all

see corresponding function in package dplyr

Examples

Run this code
# NOT RUN {
library(dplyr)
tidy_dagitty(m_bias()) %>%
  group_by(name) %>%
  summarize(n = n())
# }

Run the code above in your browser using DataLab