Hi,
consider the following
> a<-gl(3,3,9)
> a
[1] 1 1 1 2 2 2 3 3 3
Levels: 1 2 3
> levels(a)<-3:1
> a
[1] 3 3 3 2 2 2 1 1 1
Levels: 3 2 1
> a<-gl(3,3,9)
> factor(a,levels=3:1)
[1] 1 1 1 2 2 2 3 3 3
Levels: 3 2 1
It is probably something obvious I missed, but reading the documentation
of factor, an
apply.
Thanks
Nicholas Lewin-Koh
Organization Name: Genentech, Inc.
Location: South San Francisco, California
Number of Positions: 4
Type of Student (e.g. graduate, Ph.D.): Graduate, pursuing PhD in
Statistics, Biostatistics, or related field
Deadline for applying for this position
2 matches
Mail list logo