The R Project SVN R

Rev

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

Rev 9940 Rev 19008
Line 22... Line 22...
22
  \code{length}.
22
  \code{length}.
23
 
23
 
24
  \code{gl} is modelled on the \emph{GLIM} function of the same name.
24
  \code{gl} is modelled on the \emph{GLIM} function of the same name.
25
}
25
}
26
\seealso{
26
\seealso{
27
  The underlying \code{\link{factor}(.)}.}
27
  The underlying \code{\link{factor}()}.
-
 
28
}
28
\examples{
29
\examples{
29
# First control, then treatment:
30
## First control, then treatment:
30
gl(2,8, label=c("Control","Treat"))
31
gl(2, 8, label = c("Control", "Treat"))
31
# 20 alternating 1s and 2s
32
## 20 alternating 1s and 2s
32
gl(2, 1, 20)
33
gl(2, 1, 20)
33
# alternating pairs of 1s and 2s
34
## alternating pairs of 1s and 2s
34
gl(2, 2, 20)
35
gl(2, 2, 20)
35
 
-
 
36
}
36
}
37
\keyword{category}
37
\keyword{category}
38
\keyword{arith}
38
\keyword{arith}