forward: Forwarders for overlapping functions in plyr and dplyr

Description Usage Arguments See Also

Description

Of the overlapping functions in plyr and dplyr, only three have a different interface and/or semantics: count, mutate and rename. These functions are forwarders to the corresponding functions in the plyr and dplyr packages.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
pcount(df, vars = NULL, wt_var = NULL)

pmutate(.data, ...)

prename(x, replace, warn_missing = TRUE, warn_duplicated = TRUE)

dcount(x, ..., wt = NULL, sort = FALSE)

dmutate(.data, ...)

drename(.data, ...)

Arguments

df

data frame to be processed

vars

variables to count unique values of

wt_var

optional variable to weight by - if this is non-NULL, count will sum up the value of this variable for each combination of id variables.

.data

the data frame to transform

...

named parameters giving definitions of new columns.

x

named object to modify

replace

named character vector, with new names as values, and old names as names.

warn_missing

print a message if any of the old names are not actually present in x.

warn_duplicated

print a message if any name appears more than once in x after the operation. Note: x is not altered: To save the result, you need to copy the returned data into a variable.

wt

(Optional) If not specified, will tally the number of rows. If specified, will perform a "weighted" tally but summing over the specified variable.

sort

if TRUE will sort output in descending order of n

See Also

plyr::count

plyr::mutate

plyr::rename

dplyr::count

dplyr::mutate

dplyr::rename


krlmlr/pdlyr documentation built on May 20, 2019, 6:17 p.m.