gapply: gapply

Description Usage Arguments Value Author(s)

Description

apply a Positioning Method to every group. works like ddply from plyr package, but the grouping column is always called groups, and the Positioning Method is not necessarily a function (but can be).

Usage

1
gapply(d, method, ..., groups = "groups")

Arguments

d

data frame with column groups.

method

Positioning Method to apply to every group separately.

...

additional arguments, passed to Positioning Methods.

groups

can also be useful for piece column.

Value

data frame of results after applying FUN to each group in d.

Author(s)

Toby Dylan Hocking



Search within the directlabels package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.