The R Project SVN R

Rev

Rev 27447 | Rev 30461 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27447 Rev 27716
Line 51... Line 51...
51
  \code{\link{apply}},
51
  \code{\link{apply}},
52
  \code{\link{lapply}} with its versions
52
  \code{\link{lapply}} with its versions
53
  \code{\link{sapply}} and \code{\link{mapply}}.
53
  \code{\link{sapply}} and \code{\link{mapply}}.
54
}
54
}
55
\examples{
55
\examples{
-
 
56
require(stats)
56
groups <- as.factor(rbinom(32, n = 5, p = .4))
57
groups <- as.factor(rbinom(32, n = 5, p = .4))
57
tapply(groups, groups, length) #- is almost the same as
58
tapply(groups, groups, length) #- is almost the same as
58
table(groups)
59
table(groups)
59
 
60
 
60
data(warpbreaks)
61
data(warpbreaks)