Learn R Programming

doBy (version 1.5)

doBy: Various utilities which includes functions for creating groupwise calculations etc.

Description

The core doBy functions were developed to make it easy to split data into groups (defined by the levels of a set of factors) and performing some actions on each of these groups. Thus, these functions mimic what can be achieved using the BY statement in various SAS procedures. In addition hereto the doBy package containts various other utilities.

Arguments

Details

\itemFunctions summaryBy, splitBy, orderBy, sampleBy, transformBy are the core doBy functions \itemThere is no need for a plotBy function -- the xyplot function in the lattice package already fulfills these needs \itemThe esticon function calculates linear functions of parameter estimates under various types of models. \itemThere are various other utility functions in the package.

See Also

summaryBy, orderBy, transformBy, splitBy, sampleBy, doby.xtabs,

Examples

Run this code
data(dietox)

summaryBy(Weight+Feed~Evit+Cu+Time,      data=dietox, FUN=c(mean,var), na.rm=TRUE)  

orderBy(~Time+Evit, data=dietox)

splitBy(formula = ~Evit+Cu, data = dietox)

sampleBy(formula = ~Evit+Cu, frac=.1, data = dietox)

Run the code above in your browser using DataLab