Description Usage Arguments Value Examples
observe_if
identifies rows of .data
where the predicates
tested fail.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | observe_if(.data, ..., .append = TRUE)
observe_if_(.data, ..., .dots, .append = TRUE)
## S3 method for class 'data.frame'
observe_if_(.data, ..., .dots, .append = TRUE)
## S3 method for class 'tbl_df'
observe_if_(.data, ..., .dots, .append = TRUE)
## S3 method for class 'grouped_df'
observe_if_(.data, ..., .dots, .append = TRUE)
observe(.data, ...)
## Default S3 method:
observe(.data, ...)
|
.data |
A tbl or data.frame. |
... |
Logical predicates. Multiple conditions are considered as separate observations. |
.append |
logical. If |
.dots |
Used to work around non-standard evaluation. |
.data
is returned together with an observations
attribute.
This attribute is a data frame (actually a tibble
)
which contains all check runs.
1 2 3 4 5 6 7 8 | library(magrittr)
df <- data.frame(x = 1:3, y = 2:4)
df %>%
observe_if(y-x==1) %>%
observe_if(x < 3) %>%
observe_if(y < 4, x > 1) %>%
obs()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.