dplyr_verbs: 'dplyr' Verbs for 'ped'-Objects

Description Usage Arguments Value

Description

See dplyr documentation of the respective functions for description and examples.

Usage

 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
## S3 method for class 'ped'
arrange(.data, ...)

## S3 method for class 'ped'
group_by(.data, ..., add = FALSE)

## S3 method for class 'ped'
group_by_(.data, ..., .dots = list(), add = FALSE)

## S3 method for class 'ped'
ungroup(x, ...)

## S3 method for class 'ped'
distinct_(.data, ..., .dots = list())

## S3 method for class 'ped'
filter(.data, ...)

## S3 method for class 'ped'
sample_n(tbl, size, replace = FALSE, weight = NULL,
  .env = NULL)

## S3 method for class 'ped'
sample_frac(tbl, size = 1, replace = FALSE, weight = NULL,
  .env = NULL)

## S3 method for class 'ped'
slice(.data, ...)

## S3 method for class 'ped'
select(.data, ...)

## S3 method for class 'ped'
select_(.data, ..., .dots = list())

## S3 method for class 'ped'
mutate(.data, ..., keep_attributes = TRUE)

mutate_each.ped(tbl, funs, ..., keep_attributes = TRUE)

## S3 method for class 'ped'
rename(.data, ...)

## S3 method for class 'ped'
rename_(.data, ..., .dots = list())

## S3 method for class 'ped'
summarise(.data, ...)

## S3 method for class 'ped'
summarize(.data, ...)

summarise_each.ped(tbl, funs, ...)

## S3 method for class 'ped'
transmute(.data, ...)

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

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

## S3 method for class 'ped'
left_join(x, y, by = NULL, copy = FALSE, suffix = c(".x",
  ".y"), ..., keep_attributes = TRUE)

## S3 method for class 'ped'
right_join(x, y, by = NULL, copy = FALSE, suffix = c(".x",
  ".y"), ..., keep_attributes = TRUE)

Arguments

.data

an object of class ped, see split_data.

...

see dplyr documentation

add

When add = FALSE, the default, group_by() will override existing groups. To add to the existing groups, use add = TRUE.

.dots

see dplyr documentation

x

an object of class ped, see split_data.

tbl

an object of class ped, see split_data.

size

For sample_n(), the number of rows to select. For sample_frac(), the fraction of rows to select. If tbl is grouped, size applies to each group.

replace

Sample with or without replacement?

weight

Sampling weights. This must evaluate to a vector of non-negative numbers the same length as the input. Weights are automatically standardised to sum to 1.

This argument is automatically quoted and later evaluated in the context of the data frame. It supports unquoting. See vignette("programming") for an introduction to these concepts.

.env

This variable is deprecated and no longer has any effect. To evaluate weight in a particular context, you can now unquote a quosure.

keep_attributes

conserve attributes? defaults to TRUE

funs

see summarize_all

y

tbls to join

by

a character vector of variables to join by. If NULL, the default, *_join() will do a natural join, using all variables with common names across the two tables. A message lists the variables so that you can check they're right (to suppress the message, simply explicitly list the variables that you want to join).

To join by different variables on x and y use a named vector. For example, by = c("a" = "b") will match x.a to y.b.

copy

If x and y are not from the same data source, and copy is TRUE, then y will be copied into the same src as x. This allows you to join tables across srcs, but it is a potentially expensive operation so you must opt into it.

suffix

If there are non-joined duplicate variables in x and y, these suffixes will be added to the output to disambiguate them. Should be a character vector of length 2.

Value

a modified ped object (except for do)


adibender/pamm documentation built on May 14, 2019, 5:22 p.m.