[R-sig-Geo] sp: spplot bug in sp 0.9-2

Michael Sumner mdsumner at utas.edu.au
Tue Oct 17 22:52:51 CEST 2006


>
> which is quite something different. But this will convert a potentially 
> huge factor to character and back to factor which may be resource 
> intensive. Does anyone here know a simpler way of achieving this, i.e. 
> given f, without using as.character()?
>   
Does this help? 

 factor(levels(f)[f], levels = c("c","b","a"), labels =  c("cc","bb","aa"))




More information about the R-sig-Geo mailing list