[R] gl and different number of replications

Gabor Grothendieck ggrothendieck at myway.com
Wed Feb 9 23:17:16 CET 2005


Rogério Rosa da Silva <rrsilva <at> ib.usp.br> writes:

: 
: I am trying to use the function gl (generate levels), and would like to make 
: levels with different number of replications. Does anyone know how to 
: generate different number of replications in each level?
: 
: Something like:
: 
: [1] Site1 Site1 Site1 Site1 Site1 Site1 Site1
: [8] Site2 Site2 Site2 Site2 Site2
: 

gl(2,7,12, lab = "Site")




More information about the R-help mailing list