The R Project SVN R

Rev

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

Rev 15518 Rev 27447
Line 20... Line 20...
20
  Array subsetting (\code{\link{[}}) performs this reduction unless used
20
  Array subsetting (\code{\link{[}}) performs this reduction unless used
21
  with \code{drop = FALSE}, but sometimes it is useful to invoke
21
  with \code{drop = FALSE}, but sometimes it is useful to invoke
22
  \code{drop} directly.
22
  \code{drop} directly.
23
}
23
}
24
\seealso{
24
\seealso{
25
  \code{\link{drop1}} which is used for dropping terms in models.
25
  \code{\link[stats]{drop1}} which is used for dropping terms in models.
26
}
26
}
27
\examples{
27
\examples{
28
dim(drop(array(1:12, dim=c(1,3,1,1,2,1,2))))# = 3 2 2
28
dim(drop(array(1:12, dim=c(1,3,1,1,2,1,2))))# = 3 2 2
29
drop(1:3 \%*\% 2:4)# scalar product
29
drop(1:3 \%*\% 2:4)# scalar product
30
}
30
}