psummary {garray}R Documentation

Parallel summary, inspired by pmax() and pmin().

Description

Functions of Summary group are all, any, max, min, prod, range, and sum, which reduce a vector into a scalar (except range), thus the name of psummary(). Of course, other FUN can be passed-in, but functions like range() that returns a non-scalar vector result in unpredictable return. For arguments of different size, pmin() and pmax() make fractional recycling and issue warning, but psummary() error since as.data.frame() do not fractionally recycle.

Usage

psummary(...)

## S3 method for class 'garray'
psummary(...)

## Default S3 method:
psummary(...)

Arguments

...

Usually in the form psummary(x, y, z, FUN=sum, na.rm=TRUE), alternaitvely psummary(list(x, y, z), FUN=sum, na.rm=TRUE).


[Package garray version 1.1.2 Index]