R/gl.f.R

Defines functions gl.f

gl.f <- function(end, run, length = (end - start + 1) * run, start = 1, seq = start:end) {
       '  # Unlike base::gl(), this function does not return a factor  '
       '  # I wrote this in S-plus before gl() was part of R.  '
	        rep(rep(seq, len = lr <- length/run), rep(run, lr))
}
John-R-Wallace/R-ToolBox documentation built on May 2, 2024, 9:29 p.m.